Benchmarks · v0.8.0 pre-release validation

What GitCortex actually delivers — and where it stays at parity or costs more.

Every figure on this page comes from pinned open-source repositories, real CLI/MCP runs, and self-reported client token accounting (Codex CLI gpt-6.1-sol). We measure retrieval correctness, agent token efficiency, cold indexing, incremental git hooks, multi-branch storage reclaim, unforced adoption, and competitor head-to-heads — keeping dated historical runs strictly separate.

Deterministic retrieval
45 / 45
1.00 MRR & 1.00 file recall across 10 pinned repos (35 core + 10 big).
35-task Codex uncached
−27.7%
1.38× geomean; quality 0.943 → 0.986; 35/35 non-inferior.
1-file commit hook
423 ms
ripgrep (9.9× faster). tokio 821 ms; django hub 6.9 s.
5-branch disk reclaim
−84.5%
storage gc --apply + compact returns stores to base size.
01 · Model-free retrieval gate

45 / 45 deterministic tasks passing across 10 repositories

No LLM in the loop: runs directly against gcx query checking required file:line evidence, forbidden-evidence exclusion, ranking quality, and response payload budgets.

Code retrieval ranking accuracy across 10 repositories showing Hit@1 100%, MRR 1.000, NDCG@5 0.925, NDCG@10 0.971, MAP@5 0.897, and 45/45 contract pass
How to read this chart & IR metrics
  • Top-10 Rank Map (green numbered tiles): Each row shows the first 10 symbols returned by gcx query search. A green tile means that rank matched the pinned ground-truth file or symbol; gray tiles are other returned symbols; dashed tiles mean fewer than 10 hits existed in the token budget.
  • Hit@1 (100%) & MRR (1.000): Every single repository placed a ground-truth match at rank #1 (Mean Reciprocal Rank = 1.000), meaning an assistant sees the right definition immediately without scrolling.
  • NDCG@5 (0.925) & NDCG@10 (0.971): Normalized Discounted Cumulative Gain measures how tightly relevant results cluster near the top of the list (1.000 = ideal ordering). MAP@5 (0.897) is Mean Average Precision over the top 5 slots, and File Recall (1.000) confirms every target file appeared within the returned budget.
  • Why P@5 is 0.640 even when NDCG@5 is 0.925: Narrow queries like django’s QuerySet or hono’s dispatch have only 1–2 ground-truth symbols in the entire repo, so Precision@5 (relevant hits ÷ 5) is naturally capped below 1.0 even under perfect ranking.

Core Suite — 35 tasks (5 repos)

ripgrep (Rust), requests (Python), hono (TypeScript), cobra (Go), gson (Java)

Valid / total35 / 35
Hit@1 / MRR@10 / File Recall100% / 1.00 / 1.00
NDCG@5 / NDCG@100.897 / 0.957
MAP@5 / Precision@50.860 / 0.680
Median latency / payload241 ms / 2,328 B

Big-Repo Suite — 10 tasks (5 large repos)

tokio (Rust), django (Python), next.js (TS), moby (Go), spring-boot (Java)

Valid / total10 / 10
Hit@1 / MRR@10 / File Recall100% / 1.00 / 1.00
NDCG@5 / NDCG@100.953 / 0.984
MAP@5 / Precision@50.933 / 0.600
Median latency / payload650 ms / 2,314 B
02 · Agent benchmark (Codex CLI · gpt-6.1-sol · low)

Savings concentrate on relationship traversal; plain search stays near grep parity

All 35 core tasks across 5 languages, comparing ordinary grep/read exploration against GitCortex v0.8.0. All 35/35 samples are valid and quality non-inferior (0 invalid, 0 regressions).

35-task Codex agent benchmark showing uncached token deltas by action category
How to read this chart & key takeaways
  • Left of 0% = fewer tokens than grep: Each horizontal bar shows the percent change in uncached input tokens (the expensive, newly-read context an LLM processes) compared to an identical Codex CLI session using ordinary grep and file reads. The right column lists the corresponding change in total tokens (cached + uncached).
  • Where graph traversal wins biggest: Multi-hop relationship questions—subgraph (−43.0%), impact (−41.3%), refactor (−37.7%), and callers (−36.0%, while lifting accuracy from 0.80 → 1.00)—avoid repeated grep-and-read loops across dozens of files.
  • Honest boundary (search & tour): Single-hop lexical lookup stays near grep parity (−3.8% uncached, +9.8% total tokens). GitCortex is designed to complement source search and tests, not replace plain grep on trivial lookups.
Action (n=5 each)QualityTotal ΔUncached Δ
subgraph1.00 → 1.00−22.9%−43.0%
impact1.00 → 1.00−25.7%−41.3%
refactor1.00 → 1.00−24.8%−37.7%
callers0.80 → 1.00−14.2%−36.0%
architecture0.90 → 1.00−24.3%−14.4%
search1.00 → 1.00+9.8%−3.8%
tour0.90 → 0.90−15.9%0.0%
All 35 tasks0.943 → 0.986−19.4%−27.7%
Repository (n=7 each)QualityTotal ΔUncached Δ
gson (Java)1.00 → 1.00−22.5%−46.7%
hono (TypeScript)0.93 → 1.00−30.0%−32.7%
cobra (Go)0.93 → 0.93−29.3%−28.4%
ripgrep (Rust)0.86 → 1.00−5.1%−24.4%
requests (Python)1.00 → 1.00−11.2%−3.1%
Aggregate (3.88M → 3.12M)0.943 → 0.9861.22× geo1.38× geo
03 · Indexing speed & disk footprint

10-repository cold indexing vs Graphify 0.9.44 and CodeGraph 1.5.0

Full-index bulk reconciliation (in-memory edge reconciliation + KuzuDB COPY FROM) cuts cold-index time dramatically. All measurements are local Apple Silicon runs on identical pinned commits with zero LLM calls.

Cold full-index time and disk footprint across 10 real repositories
How to read this chart & key takeaways
  • Shorter bars & smaller MiB are better: Left panel compares cold full-index wall time and store size against Graphify 0.9.44 on 5 core repos (3.13 s vs 15.08 s, 4.8× faster). Right panel compares against CodeGraph 1.5.0 on 5 large repos (50.9 s vs 206.2 s, 4.1× faster and 52% smaller disk).
  • Why the right panel uses a power-0.55 axis: Repo times span two orders of magnitude—from tokio (1.63 s) to CodeGraph on nextjs (158.45 s). A gentle power axis keeps small repos readable while preserving exact measured labels on every bar.
  • Honest trade-off on moby: CodeGraph finishes faster (6.68 s / 109.6 MiB) because it skips vendored Go directories (36.8k nodes), whereas GitCortex indexed the entire tree including vendored packages (269.4k nodes / 1.07M edges).
RepositoryGCX NodesGCX EdgesGCX TimeGCX DiskCompetitorComp. TimeComp. Disk
ripgrep3,80019,6550.92 s14.2 MiBGraphify 0.9.443.00 s14.9 MiB
requests1,0994,0670.40 s10.1 MiBGraphify 0.9.441.45 s4.7 MiB
hono4,19713,0930.58 s11.5 MiBGraphify 0.9.444.82 s7.5 MiB
cobra8883,3430.39 s10.2 MiBGraphify 0.9.440.98 s3.9 MiB
gson4,70726,2490.84 s17.0 MiBGraphify 0.9.444.83 s23.0 MiB
5 Core Repos Total (4.8× faster than Graphify)3.13 s63.0 MiBGraphify total15.08 s54.0 MiB
tokio11,23676,1631.63 s28.7 MiBCodeGraph 1.5.03.56 s41.3 MiB
django48,548267,5275.28 s104.7 MiBCodeGraph 1.5.08.15 s155.3 MiB
spring-boot93,461377,7999.43 s152.3 MiBCodeGraph 1.5.029.34 s559.5 MiB
nextjs120,735414,34010.70 s137.4 MiBCodeGraph 1.5.0158.45 s635.1 MiB
moby *269,4331,072,08323.84 s297.7 MiBCodeGraph 1.5.06.68 s109.6 MiB
5 Big Repos Total (4.1× faster, 52% smaller disk)50.88 s720.8 MiBCodeGraph total206.18 s1,500.8 MiB

* On moby, CodeGraph finishes faster (6.68 s / 109.6 MiB) because it skips vendored Go directories and indexes 36,837 nodes / 120,384 edges, whereas GitCortex indexed the full repository tree (269,433 nodes / 1,072,083 edges).

04 · Operational lifecycle

Incremental commit hooks & multi-branch storage reclaim

Two real user pain points measured end-to-end on isolated git clones: 1-file edit + commit + gcx hook (plus revert verification), followed by creating & deleting 5 feature branches and running gcx storage gc --apply + gcx storage compact --apply.

Operational lifecycle chart comparing pre-fix vs v0.8.0 incremental hook latency and 5-branch storage reclaim
How to read this chart & key takeaways
  • Left panel — 1-file commit hook latency: Compares pre-fix global reference re-reconciliation against v0.8.0’s diff-scoped, PK-bounded incremental hook. Updating a 1-file edit drops from 4.17 s → 423 ms on ripgrep, >60 s timeout → 821 ms on tokio, and >60 s dense-hub crash → 6.87 s on django (15,217 incoming edges on query.py).
  • Right panel — 5-branch churn & disk reclaim: After creating and deleting 5 feature branches, running dry-run-first gcx storage gc --apply + compact --apply reclaims 84.1–84.9% of disk space in 0.76–3.71 s, returning each store to its clean base footprint.
  • Verified correctness: Every run asserted that the newly added symbol appeared in lookup-symbol immediately after commit and disappeared completely after revert.
Repository (edited file)Pre-fix hookv0.8.0 add / delBranch switch5-branch churnAfter gc + compactReclaimed
ripgrep (crates/core/main.rs)4,170 ms423 ms / 422 ms701 ms89.1 MiB14.2 MiB (0.76 s)−84.1%
tokio (tokio/src/sync/notify.rs)>60 s timeout821 ms / 845 ms1.80 s189.7 MiB28.7 MiB (1.87 s)−84.9%
django (django/db/models/query.py, 15k in-edges)>60 s / crash6.87 s / 6.56 s6.63 s676.2 MiB104.1 MiB (3.71 s)−84.6%

Every repo verified both symbol addition (lookup-symbol found the new probe symbol) and symbol removal after revert (lookup-symbol returned zero results).

05 · Competitor head-to-head (Codex CLI · gpt-6.1-sol · low)

GitCortex v0.8.0 vs Graphify 0.9.44 & CodeGraph 1.5.0

Same model, same pinned commits, same evidence contracts. Detailed per-task tables and honest competitor wins live on vs Graphify and vs CodeGraph.

Head-to-head evidence accuracy and uncached tokens vs Graphify 0.9.44 and CodeGraph 1.5.0
How to read this chart & key takeaways
  • Top rows = Evidence Accuracy (higher is better, max 1.000): Measures whether the assistant returned every required file:line citation with zero forbidden/wrong hits. GitCortex achieves 1.000 on both the 15-task core suite (15/15) and 10-task big-repo suite (10/10).
  • Bottom rows = Uncached Tokens (lower is better): Shows total newly-read tokens spent across the full suite compared to the grep baseline. GitCortex cuts uncached tokens by −32.9% vs Graphify’s core baseline and −23.5% on the 5 big repos.
  • Reading competitor numbers fairly: Graphify’s lower aggregate token bar reflects 5 early exits on ambiguous symbol errors and 9 incomplete/failed tasks (0.533 accuracy); on the 6 tasks where Graphify scored 1.00, it did use fewer tokens (77k vs GitCortex’s 91k). CodeGraph scored 9/10 (missing nextjs-callers-normalize-page-path) and used slightly fewer total tokens overall (−20.3% vs −16.8%) while GitCortex led on uncached tokens (−23.5% vs −20.7%).
06 · Unforced adoption & continuous coding episodes

Does an agent choose GitCortex voluntarily — and stay restrained on non-graph tasks?

48 runs (16 tasks = 10 graph + 6 restraint × 3 arms: baseline, gcx-bare, gcx-guide) plus 2 continuous multi-step coding episodes with hidden behavioral tests (Codex gpt-6.1-sol, medium reasoning).

48-run unforced adoption and restraint study comparing baseline, gcx-bare, and gcx-guide
How to read this chart & key takeaways
  • Three independent questions across 48 runs: Unlike forced tool benchmarks, here the agent was never told to use GitCortex. We measured whether it passes more tasks (left), voluntarily adopts gcx on 10 relationship tasks (middle), and shows restraint on 6 non-graph tasks where grep/reading is better (right).
  • Why the shared Agent Guide matters: A bare CLI binary on PATH (gcx-bare) was only discovered on 4/10 graph tasks. Installing the concise guide via gcx init lifted voluntary adoption to 10/10 (100%), lifted overall pass rate from 14/16 → 16/16, and kept false graph calls on restraint tasks at 0/6.
  • Honest token caveat: Without explicit per-call --budget-tokens caps in the unforced harness, the guided agent made 55 thorough CLI calls and spent more uncached tokens (321k vs 196k). Always pair the guide with budgeted queries in cost-sensitive workflows.
Episode (hidden test suite)ArmResultAdoptedGCX calls (err)Repeat cmdsTotal / Uncached tokensWall
requests-auth-redirectbaseline2/2 passno01731.6k / 74.7k92.0 s
gcx-bare2/2 passno01660.7k / 79.4k97.7 s
gcx-guide2/2 passyes3 (2)01,154.2k / 117.5k133.0 s
cobra-find-flagsbaseline2/2 passno01914.1k / 69.1k103.2 s
gcx-bare2/2 passno00830.8k / 85.1k96.5 s
gcx-guide2/2 passyes6 (1)01,036.0k / 168.2k106.6 s
Honest trade-off on unbudgeted agent adoption: adding the shared agent guide raised 16-task pass rate from 14/16 → 16/16 (100% adoption on graph tasks, 0/6 false calls on restraint tasks) and eliminated repeated shell commands on both continuous episodes, but unbudgeted exploratory CLI calls used more tokens than baseline (321k vs 196k uncached across 16 tasks; 118k/168k vs 75k/69k on the two episodes). Tightening guide budgeting is an explicit post-0.8.0 focus.
07 · Dated historical record (v0.7.6 · pre-0.8.0)

Earlier 3-client sweep (preserved for continuity, not merged with v0.8.0)

Captured prior to v0.8.0 on the 15-task impact/architecture/refactor suite across Codex (gpt-5.4-mini), Claude Code (Haiku), and Agy (Gemini 3.6 Flash).

Codex (historical v0.7.6)

Geomean total / uncached3.27× / 3.73×
Valid / non-inferior13/15 · 14/15

Claude Code (historical v0.7.6)

Geomean total / uncached3.26× / 1.79×
Valid / non-inferior12/15 · 12/15

Agy (historical v0.7.6)

Geomean total / uncached1.89× / 1.33×
Valid / non-inferior14/15 · 14/15
08 · What didn't pass, bugs caught, and limits

Real bugs this benchmark round caught and fixed before v0.8.0

  • find_callers cross-file diversity (PR #146): on dense hubs like django/db/models/query.py (QuerySet.filter), a single file could fill the entire caller budget and hide cross-file callers. Stratified file-diverse ranking brought the big-repo deterministic gate from 9/10 to 10/10.
  • Incremental hook performance & KuzuDB dense-hub crash (PR #147): editing a hub file with 15,217 incoming edges hit a KuzuDB 0.11.3 DETACH DELETE assertion crash/hang and O(N×M) Cypher name joins. Updating surviving nodes in place, bounding batch lookups by primary key, and threading uncommitted Imports in memory cut ripgrep hooks from 4,170 ms → 423 ms, tokio from >60 s → 821 ms, and eliminated the django crash/hang (6.9 s).
  • Full-index bulk reconciliation (PR #145): resolving initial full-index edges in Rust memory and loading via KuzuDB COPY FROM brought django cold indexing down to 5.3 s and nextjs (120k nodes) to 10.7 s.

Remaining known trade-offs (not hidden):

  • Plain lexical search stays near grep parity on Codex (−3.8% uncached, +9.8% total tokens); GitCortex's clear token wins are on relationship queries (subgraph, impact, refactor, callers).
  • moby cold indexing: GitCortex indexes vendored Go directories by default (269k nodes, 23.8 s, 298 MiB), whereas CodeGraph skips vendor dirs (36.8k nodes, 6.7 s, 110 MiB).
  • Unbudgeted adoption overhead: when unconstrained, agents equipped with the guide ran 55 CLI calls across 16 tasks (improving accuracy to 16/16 at higher total token usage).
  • Static analysis scope: dynamic dispatch, reflection, and generated code can be missed; risk labels are investigation signals, not a guarantee of safe changes.