docs: re-run the fork-vs-upstream benchmark and add a results chart
The fork is better than upstream in 68 of 76 benchmark comparisons, about the same in 5 and worse in 3, measured 2026-10-12 on a quiet host. This updates the README's results and adds a chart and a dated benchmark doc.
What changed
- README "Measured results": new tables for upstream
6560052aagainst forkce6120beon Node 24.21.0 and Bun 1.4.3, a results chart, and the "Node or Bun" paragraph and "What it costs" list re-derived from the new numbers. The stale "table predates three fixes" paragraph is gone, since the tables now include them. docs/benchmarks/fork-vs-upstream-node-bun-2026-10-12.md: method, all four arms, graph sizes, MCP and CLI tables, a heatmap of every result, a comparison with 2026-10-03, and how runs were accepted or rejected.scripts/benchmarks/runtime/render-charts.mjs: builds the chart, heatmap and every table from the raw run output, so no figure is typed by hand. A second run produces identical files.- CHANGELOG: one sentence added to the #477 entry with the measured Node figures for Alamofire and gin.
Results (Node, two runs per arm, medians)
| Measure | Upstream | Fork | Benefit |
|---|---|---|---|
| Index n8n | 163.6 s | 71.8 s | 56% less (2.3 times faster) |
| Index CPython | 95.3 s | 41.6 s | 56% less |
| Index discourse | 26.6 s | 22.7 s | 14% less |
| Index n8n, peak memory | 9.66 GiB | 6.38 GiB | 34% less |
| One-file sync on n8n | 12.8 s | 4.39 s | 66% less |
| Warm explore on n8n | 693 ms | 214 ms | 69% less (3.2 times faster) |
| Index gin | 1.13 s | 1.15 s | +2%, no clear change (within 3%) |
| Index Alamofire | 1.73 s | 1.81 s | +5% worse; the two runs per arm overlap |
| Warm explore on gin | 24 ms | 26 ms | +8% worse (2 ms; Bun +4%) |
The 3% reporting band is a convention, not a statistical margin. Results near it are labelled no clear change.
README rows checked
"About this fork" and "Measured results": the intro paragraph, the full index, one-file sync, MCP and CLI tables, the two prose paragraphs and the cost list were updated. The "Measured separately" table (worktree seeding, call-link precision) and the upstream-benchmark disclaimers were left, because they are not part of this run. The upstream merge point in "About this fork" is unchanged. __tests__/readme-sync.test.ts passes (6 tests).
Limits
- Other work on the host during a run was observed only by the load before it and the Windows CPU before and after it, not continuously.
- The n8n index attempt 1 was rejected (Windows CPU read 32% before it) and attempt 2 is reported; the two agreed within about 4%. Four earlier attempts were re-evaluated after a rejection rule that counted the benchmark's own CPU was dropped. Both are described in the doc.
- The fork's pretix graph has 74,462 edges against 77,554 on 2026-10-03. The cause was not investigated.
- The full suite was not re-run on Bun 1.4.3 or Node 26 for this measurement.
Summary by cubic
Re-runs the fork-vs-upstream benchmark on Node 24.21.0 and Bun 1.4.3 and refreshes the README's results, replacing the tables that predated three fixes and dropping the note that said so. The fork is better in 68 of 76 comparisons, about the same in 5 and worse in 3.
What changed
- The README leads with a new results chart; the benchmark doc gains a heatmap of every result and a comparison with the 2026-10-03 run.
render-charts.mjsbuilds the chart, heatmap and all tables from the raw run output, so no figure is typed by hand and a second run produces identical files.- The CHANGELOG entry for the minified-JavaScript fix quotes the new measured figures for Alamofire and gin.
- The only worse results are indexing Alamofire on Node (+5%, overlapping runs) and warm explores on gin (+8% Node, +4% Bun, 1–2 ms).
Summary by CodeRabbit
- Documentation
- Updated published performance measurements with results from the October 12, 2026 benchmark run, including comparisons across Node.js and Bun.
- Added a benchmark report comparing indexing time, memory use, graph size, file synchronization, MCP behavior, and CLI startup across seven repositories.
- Updated benchmark documentation with run details, measurement limitations, and selected results.
- Added options for generating benchmark charts and summary tables from accepted results.