diff --git a/README.md b/README.md index 7eb524a8..529837a6 100644 --- a/README.md +++ b/README.md @@ -403,27 +403,13 @@ Self-measured on every release via CI ([build benchmarks](generated/BUILD-BENCHM | Metric | Latest | |---|---| -| Build speed (native) | **1.9 ms/file** | +| Build speed (native) | **2.1 ms/file** | | Build speed (WASM) | **6.6 ms/file** | | Query time | **2ms** | -| ~50,000 files (est.) | **~95.0s build** | +| ~50,000 files (est.) | **~105.0s build** | Metrics are normalized per file for cross-version comparability. Times above are for a full initial build — incremental rebuilds only re-parse changed files. -### Lightweight Footprint - -npm unpacked size - -Only **3 runtime dependencies** — everything else is optional or a devDependency: - -| Dependency | What it does | | | -|---|---|---|---| -| [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) | Fast, synchronous SQLite driver | ![GitHub stars](https://img.shields.io/github/stars/WiseLibs/better-sqlite3?style=flat-square&label=%E2%AD%90) | ![npm downloads](https://img.shields.io/npm/dw/better-sqlite3?style=flat-square&label=%F0%9F%93%A5%2Fwk) | -| [commander](https://github.com/tj/commander.js) | CLI argument parsing | ![GitHub stars](https://img.shields.io/github/stars/tj/commander.js?style=flat-square&label=%E2%AD%90) | ![npm downloads](https://img.shields.io/npm/dw/commander?style=flat-square&label=%F0%9F%93%A5%2Fwk) | -| [web-tree-sitter](https://github.com/tree-sitter/tree-sitter) | WASM tree-sitter bindings | ![GitHub stars](https://img.shields.io/github/stars/tree-sitter/tree-sitter?style=flat-square&label=%E2%AD%90) | ![npm downloads](https://img.shields.io/npm/dw/web-tree-sitter?style=flat-square&label=%F0%9F%93%A5%2Fwk) | - -Optional: `@huggingface/transformers` (semantic search), `@modelcontextprotocol/sdk` (MCP server) — lazy-loaded only when needed. - ## 🤖 AI Agent Integration ### MCP Server diff --git a/generated/BUILD-BENCHMARKS.md b/generated/BUILD-BENCHMARKS.md index c12d7638..4c436491 100644 --- a/generated/BUILD-BENCHMARKS.md +++ b/generated/BUILD-BENCHMARKS.md @@ -5,6 +5,8 @@ Metrics are normalized per file for cross-version comparability. | Version | Engine | Date | Files | Build (ms/file) | Query (ms) | Nodes/file | Edges/file | DB (bytes/file) | |---------|--------|------|------:|----------------:|-----------:|-----------:|-----------:|----------------:| +| 2.4.0 | native | 2026-02-26 | 109 | 2.1 ↑11% | 1.7 ↑13% | 5.9 ~ | 9.7 ↑7% | 4434 ↑15% | +| 2.4.0 | wasm | 2026-02-26 | 109 | 6.6 ~ | 2.2 ↑5% | 5.9 ~ | 9.7 ↑7% | 4434 ↑15% | | 2.3.0 | native | 2026-02-24 | 99 | 1.9 ~ | 1.5 ↑7% | 5.8 ↑7% | 9.1 ~ | 3848 ~ | | 2.3.0 | wasm | 2026-02-24 | 99 | 6.6 ~ | 2.1 ↑11% | 5.8 ~ | 9.1 ↑3% | 3848 ~ | | 2.1.0 | native | 2026-02-23 | 92 | 1.9 ↓24% | 1.4 ↑17% | 5.4 ↑6% | 9.1 ↓47% | 3829 ↓14% | @@ -18,23 +20,23 @@ Metrics are normalized per file for cross-version comparability. | Metric | Value | |--------|-------| -| Build time | 183ms | +| Build time | 228ms | | Query time | 2ms | -| Nodes | 575 | -| Edges | 897 | -| DB size | 372 KB | -| Files | 99 | +| Nodes | 644 | +| Edges | 1,062 | +| DB size | 472 KB | +| Files | 109 | #### WASM | Metric | Value | |--------|-------| -| Build time | 649ms | +| Build time | 717ms | | Query time | 2ms | -| Nodes | 575 | -| Edges | 897 | -| DB size | 372 KB | -| Files | 99 | +| Nodes | 644 | +| Edges | 1,062 | +| DB size | 472 KB | +| Files | 109 | ### Estimated performance at 50,000 files @@ -42,13 +44,44 @@ Extrapolated linearly from per-file metrics above. | Metric | Native (Rust) | WASM | |--------|---:|---:| -| Build time | 95.0s | 330.0s | -| DB size | 183.5 MB | 183.5 MB | -| Nodes | 290,000 | 290,000 | -| Edges | 455,000 | 455,000 | +| Build time | 105.0s | 330.0s | +| DB size | 211.4 MB | 211.4 MB | +| Nodes | 295,000 | 295,000 | +| Edges | 485,000 | 485,000 |