Reproducible Evidence Ledger

Benchmarks & Scoped Caveats

Every figure below comes from a checked-in harness with explicit durability profiles, dataset sizes, and trade-offs. Filter by workload family to inspect raw numbers and reproduction commands.

Agent Context Reduction
14.5×
-93.1% vs. grep + top-3 read_file
Idle MCP Daemon RSS
47 MiB
vs. 346 MiB–5.21 GiB comparator RSS
vs. Milvus Server (100k)
10,853 QPS
4.8× QPS & 5.2× lower p95 @ .9525 recall
Compacted Collection Size
15.5 B
per indexed doc vs. 156.7 B SQLite (2 idx)
Suite 01 · Agent Token-Diet A/B

Commit-Pinned MCP vs. Raw git grep + read_file

15 deterministic repository tasks (AST symbol definitions + targeted line context, code search, exact-phrase archaeology, and historical v0.2.0 commit-pinned overlay queries) measured using exact production indented MCP JSON responses.

Strategy Total Payload Bytes Est. Tokens (bytes/4) Reduction hit@1 hit@5 Verified Zero-Drift
treedb-repo-mcp (ref-pinned) 76,912 B 19,228 Baseline 14 / 15 15 / 15 15 / 15 (drift=false)
git grep + Top-1 read_file 518,520 B 129,630 6.74× (-85.2%) 8 / 15 12 / 15 Worktree-only
git grep + Top-3 read_file 1,116,324 B 279,081 14.51× (-93.1%) 8 / 15 12 / 15 Worktree-only

Reproduce: go run ./cmd/token-diet-bench --repo . --tasks benchmarks/token-diet/tasks.json in benchmarks/token-diet.

Suite 02 · Bare-Metal NVMe Comparison

treedb-repo-mcp (WAL-Durable) vs. xerj v1.0.0-rc.105

Both engines tested on identical bare-metal NVMe hardware; hybrid runs share the exact same local GPU BAAI/bge-m3 server.

Benchmark Suite Corpus TreeDB (command_wal_durable) XERJ v1.0.0-rc.105 Key Outcome
Exact Phrase & Rust Code 537 .rs files (21.4 MiB), 300 queries 5.21 s · 0.9808 MRR@10 · 2.7 ms p50 · 204 MiB RSS 5.43 s · 0.6023 MRR@10 · 167 ms p50 · 5.21 GiB RSS 62× faster cold p50, 26× less RSS, +63% phrase MRR@10
Perf-Gate & 120s Idle 100.4 MiB code + markdown 30.2 s · 133.6 MiB disk · 8.4 ms · 47 MiB idle RSS 53.2 s · 192.9 MiB disk · 34.0 ms · 346 MiB idle RSS 1.76× faster ingest, 7.3× less idle RSS, -31% disk
BEIR Public Retrieval NFCorpus, SciFact, FiQA-2018 (57.6k) 6/6 nDCG@10 wins · FiQA 65.1 ms hybrid p50 0/6 nDCG@10 wins · FiQA 1,588 ms hybrid p50 6-for-6 Lexical + Hybrid sweep, 24.4× faster FiQA hybrid
Linux Kernel v6.12 Featherweight (7.1 MiB) & Welterweight (182.6 MiB) 1.78 s / 57.98 s lex · 2.3 ms / 25.4 ms phrase 5.96 s / 81.30 s lex · 454 ms / 12.2 s phrase 200×–479× faster exact phrase; XERJ hybrid DNF @ 6–8 GiB cap
Home Turf (Repo + GitHub) 1.06 GiB repo + 500 issues/PRs (2,274 comments) 37.9 s · 181.5 MiB · 153 MiB RSS · 0% bot leaks 234.6 s · 871.4 MiB · 2.73 GiB RSS · 20.8% bot leaks 6.19× faster ingest, 18.3× less RSS, native bot filtering

Scoped caveats & XERJ strengths: XERJ ingests small lexical-only BEIR JSONL corpora faster (1.1–2.8 s vs. 2.3–23.0 s), produces smaller lexical-only BEIR/CSV/JSONL indexes, and leads warm cached single-index BM25 QPS at 183 MiB. Full scorecards: benchmarks/vs-xerj.

Suite 03 · Core Storage Engine

TreeDB vs. MongoDB 9, SQLite, Milvus, Qdrant & pgvector

Scoped engine benchmarks across wire gateways, indexed document collections, and networked + in-process HNSW vector search.

Suite Configuration TreeDB Result Comparator Result Caveat / Scope
Mongo API 0..32 Secondary Indexes 100k BSON docs (~988 B), 8 producers, standalone COW 607,941 docs/s @ 2 idx (1.03M/s fast @ 0 idx) 219,095 docs/s (MongoDB 9.0.8) Beats MongoDB across all 0, 1, 2, 4, 8, 16, 32 idx; 200k gateway post-load du: 81 vs. 1,148 B/doc
YCSB Loopback Mongo BSON API 100k records, 16 workers, 95% read / 5% update 74,649 relaxed / 35,471 durable ops/s 27,333 relaxed / 21,382 durable ops/s (MongoDB 8.2.7) 2.73× relaxed (w:1) and 1.66× durable (command_wal_durable vs. w:1,j:true)
Indexed Collection Insert & Density 100k docs, batch 16k, 2 secondary indexes 983,445 docs/s · 15.5 B/doc compacted 370,370 docs/s · 156.7 B/doc (SQLite WAL) template-v1 (JSON hits 987,069 docs/s / 100.2 B/doc vs. SQLite JSON 334,747 / 231.7 B/doc)
Collection Reads & Concurrency 2 secondary indexes, GOMAXPROCS=12 4.94M ops/s concurrent primary (0 B/op) 242,014 single-driver ops/s (SQLite native) Single-driver primary: 1,098,780 vs. 242,014 ops/s; non-unique secondary: 214,961 vs. 45,455 ops/s
Vector Server Matched-Recall (Networked) 100k × 128d cosine, topK=10, c=32 10,853 QPS · 4.87 ms p95 (.9525 recall) 2,257 QPS · 25.41 ms p95 (Milvus, .9210) · 3,746 QPS (pgvector) Networked single TreeDB daemon vs. Milvus Standalone + etcd + MinIO; in-process hits 42,183 QPS / 0.37 ms
Same-Machine 500K × 768d Vectors Shared 6-CPU budget, SQ8 + FP32 rerank, topK=10 1,041 (1c) / 2,522 (6c) QPS @ 97.50% 874 (1c) / 2,197 (6c) QPS @ 95.55% (Qdrant 1.19 gRPC) End-to-end Python clients across 36 counterbalanced warm windows; Cohere 1M c6i.8xlarge hits 16,532 QPS @ .9809