-
Notifications
You must be signed in to change notification settings - Fork 4
docs: update query benchmarks (3.3.0) #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ Latencies are median over 5 runs. Hub target = most-connected node. | |
|
|
||
| | Version | Engine | fnDeps d1 | fnDeps d3 | fnDeps d5 | fnImpact d1 | fnImpact d3 | fnImpact d5 | diffImpact | | ||
| |---------|--------|----------:|----------:|----------:|------------:|------------:|------------:|-----------:| | ||
| | 3.3.0 | native | 1.4 ↑56% | 1.3 ↑44% | 1.3 ↑44% | 1.3 ↑44% | 1.3 ↑44% | 1.3 ↑44% | 8.8ms ↑28% | | ||
| | 3.3.0 | wasm | 1.3 ↑30% | 1.3 ↑30% | 1.2 ↑33% | 1.3 ↑44% | 1.3 ↑44% | 1.3 ↑44% | 8.5ms ↑39% | | ||
| | 3.1.4 | native | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 6.9ms ↓17% | | ||
| | 3.1.4 | wasm | 1 ↑11% | 1 ↑25% | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 0.9 ↑12% | 6.1ms ↓22% | | ||
| | 3.1.3 | native | 0.8 ~ | 0.8 ~ | 0.8 ~ | 0.8 ~ | 0.8 ~ | 0.8 ~ | 8.3ms ↓2% | | ||
|
|
@@ -30,42 +32,90 @@ Latencies are median over 5 runs. Hub target = most-connected node. | |
|
|
||
| ### Latest results | ||
|
|
||
| **Version:** 3.1.4 | **Date:** 2026-03-16 | ||
| **Version:** 3.3.0 | **Date:** 2026-03-19 | ||
|
|
||
| #### Native (Rust) | ||
|
|
||
| **Targets:** hub=`src/db.js`, mid=`previous`, leaf=`docs` | ||
| **Targets:** hub=`src/types.ts`, mid=`db`, leaf=`docs` | ||
|
|
||
| | Metric | Value | | ||
| |--------|------:| | ||
| | fnDeps depth 1 | 0.9ms | | ||
| | fnDeps depth 3 | 0.9ms | | ||
| | fnDeps depth 5 | 0.9ms | | ||
| | fnImpact depth 1 | 0.9ms | | ||
| | fnImpact depth 3 | 0.9ms | | ||
| | fnImpact depth 5 | 0.9ms | | ||
| | diffImpact latency | 6.9ms | | ||
| | fnDeps depth 1 | 1.4ms | | ||
| | fnDeps depth 3 | 1.3ms | | ||
| | fnDeps depth 5 | 1.3ms | | ||
| | fnImpact depth 1 | 1.3ms | | ||
| | fnImpact depth 3 | 1.3ms | | ||
| | fnImpact depth 5 | 1.3ms | | ||
| | diffImpact latency | 8.8ms | | ||
| | diffImpact affected functions | 0 | | ||
| | diffImpact affected files | 0 | | ||
|
|
||
| #### WASM | ||
|
|
||
| **Targets:** hub=`src/db.js`, mid=`previous`, leaf=`docs` | ||
| **Targets:** hub=`src/types.ts`, mid=`functionNodeId`, leaf=`docs` | ||
|
Comment on lines
+39
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The If this is intentional (e.g. the "mid" node is independently computed per engine), it should be called out in the benchmark methodology notes at the top of the file.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| | Metric | Value | | ||
| |--------|------:| | ||
| | fnDeps depth 1 | 1ms | | ||
| | fnDeps depth 3 | 1ms | | ||
| | fnDeps depth 5 | 0.9ms | | ||
| | fnImpact depth 1 | 0.9ms | | ||
| | fnImpact depth 3 | 0.9ms | | ||
| | fnImpact depth 5 | 0.9ms | | ||
| | diffImpact latency | 6.1ms | | ||
| | fnDeps depth 1 | 1.3ms | | ||
| | fnDeps depth 3 | 1.3ms | | ||
| | fnDeps depth 5 | 1.2ms | | ||
| | fnImpact depth 1 | 1.3ms | | ||
| | fnImpact depth 3 | 1.3ms | | ||
| | fnImpact depth 5 | 1.3ms | | ||
| | diffImpact latency | 8.5ms | | ||
| | diffImpact affected functions | 0 | | ||
| | diffImpact affected files | 0 | | ||
|
|
||
| <!-- QUERY_BENCHMARK_DATA | ||
| [ | ||
| { | ||
| "version": "3.3.0", | ||
| "date": "2026-03-19", | ||
| "wasm": { | ||
| "targets": { | ||
| "hub": "src/types.ts", | ||
| "mid": "functionNodeId", | ||
| "leaf": "docs" | ||
| }, | ||
| "fnDeps": { | ||
| "depth1Ms": 1.3, | ||
| "depth3Ms": 1.3, | ||
| "depth5Ms": 1.2 | ||
| }, | ||
| "fnImpact": { | ||
| "depth1Ms": 1.3, | ||
| "depth3Ms": 1.3, | ||
| "depth5Ms": 1.3 | ||
| }, | ||
| "diffImpact": { | ||
| "latencyMs": 8.5, | ||
| "affectedFunctions": 0, | ||
| "affectedFiles": 0 | ||
| } | ||
| }, | ||
| "native": { | ||
| "targets": { | ||
| "hub": "src/types.ts", | ||
| "mid": "db", | ||
| "leaf": "docs" | ||
| }, | ||
| "fnDeps": { | ||
| "depth1Ms": 1.4, | ||
| "depth3Ms": 1.3, | ||
| "depth5Ms": 1.3 | ||
| }, | ||
| "fnImpact": { | ||
| "depth1Ms": 1.3, | ||
| "depth3Ms": 1.3, | ||
| "depth5Ms": 1.3 | ||
| }, | ||
| "diffImpact": { | ||
| "latencyMs": 8.8, | ||
| "affectedFunctions": 0, | ||
| "affectedFiles": 0 | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "version": "3.1.4", | ||
| "date": "2026-03-16", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All query latencies increased substantially vs 3.1.4 and the broader 3.x baseline:
fnDeps/fnImpact(native): +44–56% (0.9ms → 1.3–1.4ms)diffImpact(native): +28% (6.9ms → 8.8ms)fnDeps/fnImpact(WASM): +30–44% (0.9–1ms → 1.2–1.3ms)diffImpact(WASM): +39% (6.1ms → 8.5ms)Part of this may be attributable to the hub target changing from
src/db.js→src/types.ts(a more connected node in the evolved codebase). However, the magnitude of the regression — particularly indiffImpactwhich is not hub-dependent — suggests a real performance change worth investigating before shipping 3.3.0.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latency regression is addressed in #528 — gating implementors lookups and caching loadConfig() brought query latencies back down.