Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Remove internal project references from benchmark script
Austen Constable54951bc18f40
diff --git a/scripts/benchmark-search-graph.sh b/scripts/benchmark-search-graph.shindex 62f84c86f..29cc36d7d 100755--- a/scripts/benchmark-search-graph.sh+++ b/scripts/benchmark-search-graph.sh@@ -1,33 +1,32 @@#!/bin/bash-# benchmark-search-graph.sh — Time search_graph name_pattern= queries against the-# running codebase-memory-mcp binary, which must already have the SIS project indexed.+# benchmark-search-graph.sh — Time search_graph name_pattern= queries against a+# codebase-memory-mcp binary to measure the regex / LIKE pre-filter performance.## Usage:-# scripts/benchmark-search-graph.sh [binary-path]+# scripts/benchmark-search-graph.sh <binary-path> <project-name>#-# Defaults to /usr/local/bin/codebase-memory-mcp.+# Example:+# scripts/benchmark-search-graph.sh ./build/c/codebase-memory-mcp my-projectset -euo pipefail-BINARY="${1:-/usr/local/bin/codebase-memory-mcp}"-PROJECT="home-ubuntu-dev-sis"+BINARY="${1:?Usage: $0 <binary-path> <project-name>}"+PROJECT="${2:?Usage: $0 <binary-path> <project-name>}"-echo "Binary: $BINARY"+echo "Binary: $BINARY"echo "Project: $PROJECT"echo ""-# Each benchmark case: NAME and JSON request bodyrun_case() {local label="$1"local request="$2"local start end elapsed_ms resultstart=$(date +%s%3N)- result=$( echo "$request" | "$BINARY" 2>/dev/null || true )+ result=$(echo "$request" | "$BINARY" 2>/dev/null || true)end=$(date +%s%3N)elapsed_ms=$(( end - start ))- # Extract match count from JSON result (nodes array length) or total fieldlocal countcount=$(echo "$result" | python3 -c "import sys, json@@ -36,14 +35,13 @@ try:content = d.get('result', {}).get('content', [{}])[0].get('text', '{}')obj = json.loads(content)print(obj.get('total', obj.get('count', '?')))-except Exception as e:+except Exception:print('?')" 2>/dev/null || echo "?")printf " %-55s %5dms (total=%s)\n" "$label" "$elapsed_ms" "$count"}-# Build a minimal JSON-RPC call for search_graphsg() {local project="$1"local args="$2"@@ -52,16 +50,13 @@ sg() {}echo "=== search_graph name_pattern= benchmarks ==="-run_case "name_pattern=.*Controller.*" "$(sg "$PROJECT" '"name_pattern":".*Controller.*","limit":20')"-run_case "name_pattern=.*Service.*" "$(sg "$PROJECT" '"name_pattern":".*Service.*","limit":20')"-run_case "name_pattern=.*Repository.*" "$(sg "$PROJECT" '"name_pattern":".*Repository.*","limit":20')"-run_case "name_pattern=specificFuncName" "$(sg "$PROJECT" '"name_pattern":"specificFuncName","limit":20')"+run_case "name_pattern=.*Controller.*" "$(sg "$PROJECT" '"name_pattern":".*Controller.*","limit":20')"+run_case "name_pattern=.*Service.*" "$(sg "$PROJECT" '"name_pattern":".*Service.*","limit":20')"+run_case "name_pattern=.*Repository.*" "$(sg "$PROJECT" '"name_pattern":".*Repository.*","limit":20')"+run_case "name_pattern=specificFunctionName" "$(sg "$PROJECT" '"name_pattern":"specificFunctionName","limit":20')"run_case "label=Method + name_pattern=.*get.*" "$(sg "$PROJECT" '"label":"Method","name_pattern":".*get.*","limit":20')"-run_case "name_pattern=.*Approve.*" "$(sg "$PROJECT" '"name_pattern":".*Approve.*","limit":20')"-run_case "name_pattern=.*authorize.*" "$(sg "$PROJECT" '"name_pattern":".*authorize.*","limit":20')"echo ""echo "=== search_graph query= benchmarks (BM25 path — for reference) ==="-run_case "query=approve apps authorization school" "$(sg "$PROJECT" '"query":"approve apps authorization school","limit":20')"-run_case "query=Group User Details Manage All Users" "$(sg "$PROJECT" '"query":"Group User Details Manage All Users permission","limit":20')"-run_case "query=dev portal approve integration third party" "$(sg "$PROJECT" '"query":"dev portal approve integration third party apps authorization","limit":20')"+run_case "query=controller service handler" "$(sg "$PROJECT" '"query":"controller service handler","limit":20')"+run_case "query=repository database query" "$(sg "$PROJECT" '"query":"repository database query","limit":20')"