perf(bench): re-baseline lookup on jarvis with the interleaved harness
The first baseline came from a laptop on battery, with one router per process, run one after the other. It moves to battery-run/ for reference. The new baseline is the interleaved A/A run (live matcher as A, byte-identical oracle as B) on jarvis. Setup: Ryzen 7 3700X, cpuset 6,7,14,15 (two idle physical cores and their SMT siblings), node:22 container, Node 22.23.1, load average 0.27-0.79, no CI job running. 4 processes x 21 rounds give 84 paired rounds per cell. Live medians in ns per lookup (static hit, late param, method miss, path miss): 10 routes: 185, 328, 800, 626 100 routes: 201, 878, 2525, 3054 500 routes: 202, 2931, 11904, 15514 A/A noise floor (oracle/live median ratio, 95% CI): at 10 routes, static hit -13.7..+11.9% and late param -1.6..+9.8%; misses within +-4.4%. At 100 and 500 routes, offsets are systematic but within about 3%. In-process, the module imported first runs about 20% faster on the 10-route static hit. Alternating import order per process removes the bias from the median but not from that cell's CI. A 5% limit there cannot be resolved with this method and sample size, so this is recorded for the D4 decision. The 20% improvement target at 500 routes is far outside the noise. Refs #109 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
13 files changed
+9281
-1736
No files matched your search
@@ -1,90 +1,82 @@
|
||||
# Pre-radix router baseline — `ed47836`
|
||||
|
||||
The performance half of the CARD-08 parity corpus (FPRD-001, #109). Captured before any CARD-07
|
||||
router change; immutable through CARD-07 review, like `test/router-parity/`. CARD-10 measures the
|
||||
radix index with the **same harness, same defaults, same machine class**, and compares against
|
||||
these files. Do not re-run into this directory: a new capture goes in a new directory.
|
||||
The performance half of the CARD-08 parity corpus (FPRD-001, #109), captured before any CARD-07
|
||||
router change and immutable through CARD-07 review, like `test/router-parity/`. CARD-10 measures
|
||||
the radix index with the **same harness and defaults, on the same host, cpuset and image**, running
|
||||
`LOOKUP_ROUTERS="base=<ed47836 router>,head=src/http/router.ts"`. Do not re-run into this directory:
|
||||
a new capture goes in a new directory.
|
||||
|
||||
## Files
|
||||
|
||||
| File | What it is |
|
||||
|---|---|
|
||||
| `lookup-raw.json` | **The D4 baseline.** `bench:lookup` on the live linear matcher: environment, method, every sample of every run, and the summary. |
|
||||
| `lookup-summary.txt` | The table `bench:lookup` printed for that run. |
|
||||
| `lookup-aa-raw.json`, `lookup-aa-summary.txt` | A/A noise check: the live router against the byte-identical frozen oracle (`test/router-parity/oracle.ts`), same alternating protocol. Any difference here is noise. |
|
||||
| `compare-e2e-raw.json`, `compare-e2e-summary.txt`, `compare-e2e-stderr.txt` | `npm run bench:compare`, run once with this tree as both base and head. **End-to-end req/s signal only**: 50/200 *filler* routes plus base routes, not 10/100/500 total, and not lookup time. It cannot decide D4. |
|
||||
| `load.txt` | `uptime` before and after each run. |
|
||||
| `lookup-raw.json` | **The D4 baseline.** Interleaved `bench:lookup` with the live linear matcher as A and the byte-identical frozen oracle as B: environment, method, every sample of every round, and the summary. The live column gives the absolute baseline; the B/A ratios give the A/A noise floor. |
|
||||
| `lookup-summary.txt` | The tables that run printed. |
|
||||
| `load.txt` | `uptime` and running CI job containers, before and after. |
|
||||
| `battery-run/` | The superseded first capture (laptop on battery, sequential harness), kept for reference, including its `bench:compare` end-to-end req/s run. |
|
||||
|
||||
## Environment
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Hardware | Apple M4 Max (`Mac16,5`), 16 cores (12 performance + 4 efficiency), 64 GiB |
|
||||
| Power | **On battery** (84%, discharging) for every run. macOS may manage clocks differently on AC; run the CARD-10 comparison on the same power source, or re-capture both on AC. |
|
||||
| OS | macOS 27.0.1 (build 26A434), Darwin 27.0.0 arm64 |
|
||||
| Node | v22.22.2 (V8 12.4.254.21-node.39) |
|
||||
| Packages | `@green-tea/core@26.9.0-beta.2`; tsx 4.23.5, typescript 5.9.3, vitest 4.1.11, autocannon 8.0.0 (from `package-lock.json`) |
|
||||
| Core revision | Router source at `ed47836c9820c47bf4ed5e902d91e019abdb110a`. The harness ran from `98ea948` (this branch), whose `src/` is byte-identical to `ed47836` — the branch adds only tests and bench files. |
|
||||
| Env vars | `LOOKUP_OUT` only (and `LOOKUP_ROUTERS` for the A/A run); no `NODE_OPTIONS`. Recorded in each raw file under `meta.env`. |
|
||||
| Load | 1-minute load average 2.4–3.4 on 16 cores throughout (see `load.txt` and `meta.loadavgAtStart/End`). Foreground apps were a browser and the window server; nothing else CPU-bound. |
|
||||
| Host | jarvis (homelab), Ubuntu 24.04.3 LTS, kernel 6.8.0-138-generic, x86_64 |
|
||||
| CPU | AMD Ryzen 7 3700X, 8 cores / 16 threads, 2 × 16 MiB L3, governor `schedutil` (host default; not changed) |
|
||||
| Memory | 62.7 GiB |
|
||||
| Isolation | `docker run --rm --cpuset-cpus 6,7,14,15`: physical cores 6 and 7 plus their SMT siblings, both on the second CCX. All 16 CPUs were 0.0–0.8% busy in a 5 s sample beforehand. |
|
||||
| Container | `node:22` (`sha256:5647be70…`), Node v22.23.1, V8 12.4.254.21-node.56; Docker 29.1.3 |
|
||||
| Power | Not applicable (mains-powered server) |
|
||||
| Load | 1-minute load 0.27 before, 0.79 after; no CI job containers running (see `load.txt`). jarvis also runs long-lived services (payments-automation, open-webui, windmill, the Gitea act_runner, alloy, beszel), none of them pinned off these cores. |
|
||||
| Revision | Router at `ed47836c9820c47bf4ed5e902d91e019abdb110a`; harness `ee7fdec`, whose `src/` is byte-identical to `ed47836`. Copied with `git archive`, `npm ci --ignore-scripts` in the container. |
|
||||
| Env vars | Only `LOOKUP_*` (recorded in `meta.env`); no `NODE_OPTIONS`. |
|
||||
|
||||
## Method (`bench/lookup.ts`, defaults)
|
||||
## Method (`bench/lookup.ts` at `ee7fdec`, defaults)
|
||||
|
||||
- **Operation:** `resolveRoute(routes, method, path)`, and on `undefined`, `allowedMethods(routes, path)` — what `dispatch` does after `normalizeRequestPath`. Normalization is excluded.
|
||||
- **Route counts:** 10, 100 and 500 **total registered HTTP routes**.
|
||||
- **Generator:** N−2 fillers cycling `GET /res{k}/items`, `POST /res{k}/items`, `GET /res{k}/items/:id`, `PUT /res{k}/items/:id(\d+)`, `GET /res{k}/files/:path*` (k = ⌊i/5⌋), then `GET /static/target/leaf`, then `GET /late/:group/:id` declared last.
|
||||
- **Workloads:** static hit `GET /static/target/leaf`; late parameter hit `GET /late/g1/42`; method miss `DELETE /static/target/leaf` (Allow `GET, HEAD, OPTIONS`); path miss `GET /nowhere/at/all`. Each answer is asserted before timing.
|
||||
- **Order:** for each run, for each router (order alternates per run), for count 10 → 100 → 500, for the four workloads in the order above.
|
||||
- **Warm-up:** 250 ms per cell, time-boxed; it also calibrates iterations so one sample lasts ≈25 ms (iteration counts are stored per cell).
|
||||
- **Repetitions:** 5 runs, each a fresh child process; 21 samples per cell per run → 105 samples per cell. Every sample is kept.
|
||||
- **Statistic:** median ns per lookup over all 105 samples. Run spread = (max − min of the five per-run medians) / median.
|
||||
- **Operation:** `resolveRoute(routes, method, path)`, and on `undefined`, `allowedMethods(routes, path)` — what `dispatch` does after `normalizeRequestPath`.
|
||||
- **Route counts:** 10, 100 and 500 **total registered HTTP routes**, from the recorded generator (`meta.method.routeGenerator`).
|
||||
- **Workloads:** static hit, late parameter hit, method miss, path miss; each answer is asserted before timing.
|
||||
- **Interleaving:** for each cell, every router is warmed for 250 ms (also calibrating ≈25 ms samples), then 21 rounds of one sample per router with the order alternating AB / BA.
|
||||
- **Repetitions:** 4 fresh processes, with module import order alternating per process → 84 paired rounds per cell. Every sample is kept.
|
||||
- **Statistics:** absolute = median ns per lookup over all 84 samples; ratio = median of the 84 per-round B/A ratios, with a percentile-bootstrap 95% CI (4000 resamples, seed 10908).
|
||||
|
||||
## Baseline (median ns per lookup, `lookup-raw.json`)
|
||||
## Baseline: live linear matcher (median ns per lookup)
|
||||
|
||||
| Routes | Static hit | Late param hit | Method miss | Path miss |
|
||||
|---:|---:|---:|---:|---:|
|
||||
| 10 | 61.3 (spread 17.5%) | 123.3 (6.2%) | 313.1 (4.6%) | 247.1 (6.8%) |
|
||||
| 100 | 67.6 (8.0%) | 343.4 (2.1%) | 1 263.7 (3.5%) | 1 463.3 (3.2%) |
|
||||
| 500 | 67.8 (7.5%) | 1 326.8 (16.5%) | 6 732.2 (6.5%) | 8 973.4 (2.0%) |
|
||||
| Routes | Workload | live median ns | run medians (ns) | run spread |
|
||||
|---:|---|---:|---|---:|
|
||||
| 10 | static hit | 185.3 | 156.1 / 187.7 / 174.1 / 194.2 | 20.5% |
|
||||
| 10 | late param hit | 328.4 | 311.9 / 336.2 / 323.0 / 342.4 | 9.3% |
|
||||
| 10 | method miss | 800.4 | 762.6 / 801.2 / 798.6 / 804.4 | 5.2% |
|
||||
| 10 | path miss | 625.5 | 594.6 / 631.3 / 620.3 / 628.1 | 5.9% |
|
||||
| 100 | static hit | 201.2 | 202.2 / 200.8 / 197.6 / 207.2 | 4.8% |
|
||||
| 100 | late param hit | 878.0 | 861.1 / 857.0 / 907.3 / 880.5 | 5.7% |
|
||||
| 100 | method miss | 2,525 | 2,424 / 2,514 / 2,580 / 2,531 | 6.2% |
|
||||
| 100 | path miss | 3,054 | 2,965 / 3,024 / 3,114 / 3,071 | 4.9% |
|
||||
| 500 | static hit | 202.2 | 201.8 / 202.3 / 195.1 / 210.3 | 7.5% |
|
||||
| 500 | late param hit | 2,931 | 2,830 / 2,804 / 2,980 / 3,016 | 7.2% |
|
||||
| 500 | method miss | 11,904 | 11,635 / 11,518 / 11,946 / 12,031 | 4.3% |
|
||||
| 500 | path miss | 15,514 | 15,103 / 14,972 / 15,665 / 16,034 | 6.8% |
|
||||
|
||||
## Noise floor (A/A, `lookup-aa-raw.json`)
|
||||
## A/A noise floor: identical code, oracle / live
|
||||
|
||||
Identical matcher code under two labels, alternating order per run. Median difference
|
||||
(oracle − live) / live:
|
||||
| Routes | Workload | oracle / live median | 95% CI |
|
||||
|---:|---|---:|---|
|
||||
| 10 | static hit | 0.9507 (-4.9%) | -13.7% … +11.9% |
|
||||
| 10 | late param hit | 1.0415 (+4.1%) | -1.6% … +9.8% |
|
||||
| 10 | method miss | 0.9809 (-1.9%) | -4.4% … +0.8% |
|
||||
| 10 | path miss | 0.9919 (-0.8%) | -3.2% … +1.4% |
|
||||
| 100 | static hit | 1.0082 (+0.8%) | -1.9% … +4.5% |
|
||||
| 100 | late param hit | 1.0247 (+2.5%) | +1.9% … +2.9% |
|
||||
| 100 | method miss | 1.0055 (+0.6%) | +0.3% … +0.7% |
|
||||
| 100 | path miss | 1.0165 (+1.7%) | +1.2% … +1.9% |
|
||||
| 500 | static hit | 1.0107 (+1.1%) | -2.2% … +4.5% |
|
||||
| 500 | late param hit | 0.9838 (-1.6%) | -2.2% … +0.8% |
|
||||
| 500 | method miss | 1.0197 (+2.0%) | +1.6% … +2.3% |
|
||||
| 500 | path miss | 1.0161 (+1.6%) | +0.5% … +2.6% |
|
||||
|
||||
| Routes | Static hit | Late param hit | Method miss | Path miss |
|
||||
|---:|---:|---:|---:|---:|
|
||||
| 10 | +5.2% | 0.0% | +1.2% | +0.2% |
|
||||
| 100 | −0.1% | −0.8% | −0.1% | +0.1% |
|
||||
| 500 | −2.7% | +0.3% | −0.4% | +0.1% |
|
||||
**For D4:**
|
||||
|
||||
**For D4:** with no code difference at all, the 10-route static hit already moves 5.2% — the
|
||||
size of the proposed ≤5% regression limit — and per-run medians at 10 routes spread 4.5–17.5%.
|
||||
That cell is ~60 ns, where a few nanoseconds of timer and scheduling noise are a large fraction.
|
||||
The ≥20% improvement at 500 routes is well clear of the noise (≤2.7% A/A, ≤16.5% spread on a
|
||||
1.3–9 µs operation). Whether D4's 10-route limit applies per workload, to a mean across workloads,
|
||||
or needs more runs is an owner decision; this baseline does not make it.
|
||||
- **Import order.** In-process, the module imported first is faster on the cheapest cell. At 10-route static hit (≈180 ns) the per-run medians swap by about 20% when the import order swaps (run 1: live 156, oracle 200 ns; run 2: live 188, oracle 162 ns). Alternating the import order removes that bias from the median, but it leaves that cell's 95% CI at −13.7 … +11.9%. A ≤5% regression limit cannot be resolved there with this method and sample size.
|
||||
- **Other 10-route cells.** The CIs are within about ±10% (late parameter hit −1.6 … +9.8%), and the misses are within ±4.4%.
|
||||
- **100 and 500 routes.** Identical code shows small but systematic offsets of up to +2.9%, with CIs that exclude 1. Treat anything inside ±3% as indistinguishable from no change.
|
||||
- **500 routes.** The ≥20% improvement target is far outside the noise in every cell.
|
||||
|
||||
## End-to-end signal (`bench:compare`, req/s — not lookup time)
|
||||
|
||||
Run once, A/A: `AB_BASE` pointed at this same tree, so base and head are identical code. Defaults:
|
||||
3 rounds × 10 s per case after a 10 s warm-up, 100 connections, alternating side order. Load
|
||||
average 2.8–3.3 throughout. A few short parity-test runs (seconds each) happened during this
|
||||
~22-minute run; the lookup runs above had nothing else running.
|
||||
|
||||
| Scenario | base req/s | head req/s | Δ |
|
||||
|---|---:|---:|---:|
|
||||
| hello | 88,212 | 88,236 | +0.0% |
|
||||
| param | 86,508 | 85,885 | −0.7% |
|
||||
| pipeline (3 steps) | 80,189 | 80,934 | +0.9% |
|
||||
| steps5 | 74,359 | 73,975 | −0.5% |
|
||||
| validate (POST) | 70,607 | 69,903 | −1.0% |
|
||||
| hello + security | 83,913 | 83,802 | −0.1% |
|
||||
| hello + cors predicate | 82,028 | 80,445 | −1.9% |
|
||||
| preflight + cors predicate | 114,377 | 114,010 | −0.3% |
|
||||
| param, 50 routes | 82,476 | 82,045 | −0.5% |
|
||||
| param, 200 routes | 72,957 | 73,306 | +0.5% |
|
||||
|
||||
Every row's sample ranges overlap. So with no code change, end-to-end throughput moves up to
|
||||
±1.9%; the route-width rows show that 200 filler routes already cost ~12% req/s against
|
||||
`param` with none.
|
||||
The options for D4 are to apply the 10-route limit to the miss and late-parameter cells only, to require more rounds for the static cell, or to restate the limit relative to this measured floor. That decision belongs to the owner.
|
||||
@@ -0,0 +1,94 @@
|
||||
# Superseded: first baseline, laptop on battery — `ed47836`
|
||||
|
||||
> Kept for reference only. **The baseline is `../README.md`**, captured on jarvis with the
|
||||
> interleaved harness. This run used the earlier sequential harness (`98ea948`), one router per
|
||||
> process, on a laptop running on battery.
|
||||
|
||||
The performance half of the CARD-08 parity corpus (FPRD-001, #109). Captured before any CARD-07
|
||||
router change; immutable through CARD-07 review, like `test/router-parity/`. CARD-10 measures the
|
||||
radix index with the **same harness, same defaults, same machine class**, and compares against
|
||||
these files. Do not re-run into this directory: a new capture goes in a new directory.
|
||||
|
||||
## Files
|
||||
|
||||
| File | What it is |
|
||||
|---|---|
|
||||
| `lookup-raw.json` | **The D4 baseline.** `bench:lookup` on the live linear matcher: environment, method, every sample of every run, and the summary. |
|
||||
| `lookup-summary.txt` | The table `bench:lookup` printed for that run. |
|
||||
| `lookup-aa-raw.json`, `lookup-aa-summary.txt` | A/A noise check: the live router against the byte-identical frozen oracle (`test/router-parity/oracle.ts`), same alternating protocol. Any difference here is noise. |
|
||||
| `compare-e2e-raw.json`, `compare-e2e-summary.txt`, `compare-e2e-stderr.txt` | `npm run bench:compare`, run once with this tree as both base and head. **End-to-end req/s signal only**: 50/200 *filler* routes plus base routes, not 10/100/500 total, and not lookup time. It cannot decide D4. |
|
||||
| `load.txt` | `uptime` before and after each run. |
|
||||
|
||||
## Environment
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Hardware | Apple M4 Max (`Mac16,5`), 16 cores (12 performance + 4 efficiency), 64 GiB |
|
||||
| Power | **On battery** (84%, discharging) for every run. macOS may manage clocks differently on AC; run the CARD-10 comparison on the same power source, or re-capture both on AC. |
|
||||
| OS | macOS 27.0.1 (build 26A434), Darwin 27.0.0 arm64 |
|
||||
| Node | v22.22.2 (V8 12.4.254.21-node.39) |
|
||||
| Packages | `@green-tea/core@26.9.0-beta.2`; tsx 4.23.5, typescript 5.9.3, vitest 4.1.11, autocannon 8.0.0 (from `package-lock.json`) |
|
||||
| Core revision | Router source at `ed47836c9820c47bf4ed5e902d91e019abdb110a`. The harness ran from `98ea948` (this branch), whose `src/` is byte-identical to `ed47836` — the branch adds only tests and bench files. |
|
||||
| Env vars | `LOOKUP_OUT` only (and `LOOKUP_ROUTERS` for the A/A run); no `NODE_OPTIONS`. Recorded in each raw file under `meta.env`. |
|
||||
| Load | 1-minute load average 2.4–3.4 on 16 cores throughout (see `load.txt` and `meta.loadavgAtStart/End`). Foreground apps were a browser and the window server; nothing else CPU-bound. |
|
||||
|
||||
## Method (`bench/lookup.ts`, defaults)
|
||||
|
||||
- **Operation:** `resolveRoute(routes, method, path)`, and on `undefined`, `allowedMethods(routes, path)` — what `dispatch` does after `normalizeRequestPath`. Normalization is excluded.
|
||||
- **Route counts:** 10, 100 and 500 **total registered HTTP routes**.
|
||||
- **Generator:** N−2 fillers cycling `GET /res{k}/items`, `POST /res{k}/items`, `GET /res{k}/items/:id`, `PUT /res{k}/items/:id(\d+)`, `GET /res{k}/files/:path*` (k = ⌊i/5⌋), then `GET /static/target/leaf`, then `GET /late/:group/:id` declared last.
|
||||
- **Workloads:** static hit `GET /static/target/leaf`; late parameter hit `GET /late/g1/42`; method miss `DELETE /static/target/leaf` (Allow `GET, HEAD, OPTIONS`); path miss `GET /nowhere/at/all`. Each answer is asserted before timing.
|
||||
- **Order:** for each run, for each router (order alternates per run), for count 10 → 100 → 500, for the four workloads in the order above.
|
||||
- **Warm-up:** 250 ms per cell, time-boxed; it also calibrates iterations so one sample lasts ≈25 ms (iteration counts are stored per cell).
|
||||
- **Repetitions:** 5 runs, each a fresh child process; 21 samples per cell per run → 105 samples per cell. Every sample is kept.
|
||||
- **Statistic:** median ns per lookup over all 105 samples. Run spread = (max − min of the five per-run medians) / median.
|
||||
|
||||
## Baseline (median ns per lookup, `lookup-raw.json`)
|
||||
|
||||
| Routes | Static hit | Late param hit | Method miss | Path miss |
|
||||
|---:|---:|---:|---:|---:|
|
||||
| 10 | 61.3 (spread 17.5%) | 123.3 (6.2%) | 313.1 (4.6%) | 247.1 (6.8%) |
|
||||
| 100 | 67.6 (8.0%) | 343.4 (2.1%) | 1 263.7 (3.5%) | 1 463.3 (3.2%) |
|
||||
| 500 | 67.8 (7.5%) | 1 326.8 (16.5%) | 6 732.2 (6.5%) | 8 973.4 (2.0%) |
|
||||
|
||||
## Noise floor (A/A, `lookup-aa-raw.json`)
|
||||
|
||||
Identical matcher code under two labels, alternating order per run. Median difference
|
||||
(oracle − live) / live:
|
||||
|
||||
| Routes | Static hit | Late param hit | Method miss | Path miss |
|
||||
|---:|---:|---:|---:|---:|
|
||||
| 10 | +5.2% | 0.0% | +1.2% | +0.2% |
|
||||
| 100 | −0.1% | −0.8% | −0.1% | +0.1% |
|
||||
| 500 | −2.7% | +0.3% | −0.4% | +0.1% |
|
||||
|
||||
**For D4:** with no code difference at all, the 10-route static hit already moves 5.2% — the
|
||||
size of the proposed ≤5% regression limit — and per-run medians at 10 routes spread 4.5–17.5%.
|
||||
That cell is ~60 ns, where a few nanoseconds of timer and scheduling noise are a large fraction.
|
||||
The ≥20% improvement at 500 routes is well clear of the noise (≤2.7% A/A, ≤16.5% spread on a
|
||||
1.3–9 µs operation). Whether D4's 10-route limit applies per workload, to a mean across workloads,
|
||||
or needs more runs is an owner decision; this baseline does not make it.
|
||||
|
||||
## End-to-end signal (`bench:compare`, req/s — not lookup time)
|
||||
|
||||
Run once, A/A: `AB_BASE` pointed at this same tree, so base and head are identical code. Defaults:
|
||||
3 rounds × 10 s per case after a 10 s warm-up, 100 connections, alternating side order. Load
|
||||
average 2.8–3.3 throughout. A few short parity-test runs (seconds each) happened during this
|
||||
~22-minute run; the lookup runs above had nothing else running.
|
||||
|
||||
| Scenario | base req/s | head req/s | Δ |
|
||||
|---|---:|---:|---:|
|
||||
| hello | 88,212 | 88,236 | +0.0% |
|
||||
| param | 86,508 | 85,885 | −0.7% |
|
||||
| pipeline (3 steps) | 80,189 | 80,934 | +0.9% |
|
||||
| steps5 | 74,359 | 73,975 | −0.5% |
|
||||
| validate (POST) | 70,607 | 69,903 | −1.0% |
|
||||
| hello + security | 83,913 | 83,802 | −0.1% |
|
||||
| hello + cors predicate | 82,028 | 80,445 | −1.9% |
|
||||
| preflight + cors predicate | 114,377 | 114,010 | −0.3% |
|
||||
| param, 50 routes | 82,476 | 82,045 | −0.5% |
|
||||
| param, 200 routes | 72,957 | 73,306 | +0.5% |
|
||||
|
||||
Every row's sample ranges overlap. So with no code change, end-to-end throughput moves up to
|
||||
±1.9%; the route-width rows show that 200 filler routes already cost ~12% req/s against
|
||||
`param` with none.
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
uptime before: 17:01 up 9 days, 7:50, 1 user, load averages: 2.47 2.14 6.86
|
||||
uptime after: 17:02 up 9 days, 7:51, 1 user, load averages: 2.58 2.21 6.64
|
||||
A/A uptime before: 17:02 up 9 days, 7:51, 1 user, load averages: 3.42 2.40 6.66
|
||||
A/A uptime after: 17:03 up 9 days, 7:53, 1 user, load averages: 2.89 2.48 6.26
|
||||
bench:compare uptime before: 17:04 up 9 days, 7:53, 1 user, load averages: 2.98 2.51 6.25
|
||||
bench:compare uptime after: 17:26 up 9 days, 8:15, 1 user, load averages: 2.82 3.32 4.29
|
||||
File renamed without changes.
File renamed without changes.
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,21 @@
|
||||
|
||||
> @green-tea/core@26.9.0-beta.2 bench:lookup
|
||||
> tsx bench/lookup.ts
|
||||
|
||||
| router | routes | workload | median ns/op | run medians (ns) | run spread |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| live | 10 | static hit | 61.3 | 64.4 / 61.0 / 68.4 / 58.0 / 57.6 | 17.5% |
|
||||
| live | 10 | late param hit | 123.3 | 122.4 / 128.1 / 123.3 / 123.7 / 120.4 | 6.2% |
|
||||
| live | 10 | method miss | 313.1 | 303.2 / 314.0 / 317.6 / 317.2 / 304.7 | 4.6% |
|
||||
| live | 10 | path miss | 247.1 | 243.8 / 246.0 / 256.5 / 251.7 / 239.7 | 6.8% |
|
||||
| live | 100 | static hit | 67.6 | 67.6 / 70.3 / 71.7 / 66.9 / 66.3 | 8.0% |
|
||||
| live | 100 | late param hit | 343.4 | 339.7 / 345.5 / 346.8 / 343.0 / 341.0 | 2.1% |
|
||||
| live | 100 | method miss | 1263.7 | 1253.2 / 1236.5 / 1280.9 / 1261.0 / 1264.6 | 3.5% |
|
||||
| live | 100 | path miss | 1463.3 | 1444.6 / 1442.4 / 1489.2 / 1467.6 / 1467.1 | 3.2% |
|
||||
| live | 500 | static hit | 67.8 | 69.7 / 68.1 / 68.2 / 64.6 / 65.1 | 7.5% |
|
||||
| live | 500 | late param hit | 1326.8 | 1480.6 / 1262.0 / 1309.9 / 1328.9 / 1331.8 | 16.5% |
|
||||
| live | 500 | method miss | 6732.2 | 7072.0 / 6659.6 / 6796.0 / 6631.5 / 6699.6 | 6.5% |
|
||||
| live | 500 | path miss | 8973.4 | 8915.3 / 8994.7 / 9052.0 / 8876.0 / 8981.4 | 2.0% |
|
||||
|
||||
load average: start 2.47 2.14 6.86, end 2.58 2.21 6.64
|
||||
raw samples: bench/baseline/router-ed47836/lookup-raw.json
|
||||
@@ -1,6 +1,3 @@
|
||||
uptime before: 17:01 up 9 days, 7:50, 1 user, load averages: 2.47 2.14 6.86
|
||||
uptime after: 17:02 up 9 days, 7:51, 1 user, load averages: 2.58 2.21 6.64
|
||||
A/A uptime before: 17:02 up 9 days, 7:51, 1 user, load averages: 3.42 2.40 6.66
|
||||
A/A uptime after: 17:03 up 9 days, 7:53, 1 user, load averages: 2.89 2.48 6.26
|
||||
bench:compare uptime before: 17:04 up 9 days, 7:53, 1 user, load averages: 2.98 2.51 6.25
|
||||
bench:compare uptime after: 17:26 up 9 days, 8:15, 1 user, load averages: 2.82 3.32 4.29
|
||||
before: 2026-10-10T22:42:38Z 17:42:38 up 44 days, 17:31, 2 users, load average: 0.27, 0.11, 0.04
|
||||
ci job containers: 0
|
||||
after: 2026-10-10T22:43:54Z 17:43:54 up 44 days, 17:32, 2 users, load average: 0.79, 0.31, 0.12
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,21 +1,44 @@
|
||||
|
||||
> @green-tea/core@26.9.0-beta.2 bench:lookup
|
||||
> tsx bench/lookup.ts
|
||||
|
||||
| router | routes | workload | median ns/op | run medians (ns) | run spread |
|
||||
| routes | workload | router | median ns/op | run medians (ns) | run spread |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| live | 10 | static hit | 61.3 | 64.4 / 61.0 / 68.4 / 58.0 / 57.6 | 17.5% |
|
||||
| live | 10 | late param hit | 123.3 | 122.4 / 128.1 / 123.3 / 123.7 / 120.4 | 6.2% |
|
||||
| live | 10 | method miss | 313.1 | 303.2 / 314.0 / 317.6 / 317.2 / 304.7 | 4.6% |
|
||||
| live | 10 | path miss | 247.1 | 243.8 / 246.0 / 256.5 / 251.7 / 239.7 | 6.8% |
|
||||
| live | 100 | static hit | 67.6 | 67.6 / 70.3 / 71.7 / 66.9 / 66.3 | 8.0% |
|
||||
| live | 100 | late param hit | 343.4 | 339.7 / 345.5 / 346.8 / 343.0 / 341.0 | 2.1% |
|
||||
| live | 100 | method miss | 1263.7 | 1253.2 / 1236.5 / 1280.9 / 1261.0 / 1264.6 | 3.5% |
|
||||
| live | 100 | path miss | 1463.3 | 1444.6 / 1442.4 / 1489.2 / 1467.6 / 1467.1 | 3.2% |
|
||||
| live | 500 | static hit | 67.8 | 69.7 / 68.1 / 68.2 / 64.6 / 65.1 | 7.5% |
|
||||
| live | 500 | late param hit | 1326.8 | 1480.6 / 1262.0 / 1309.9 / 1328.9 / 1331.8 | 16.5% |
|
||||
| live | 500 | method miss | 6732.2 | 7072.0 / 6659.6 / 6796.0 / 6631.5 / 6699.6 | 6.5% |
|
||||
| live | 500 | path miss | 8973.4 | 8915.3 / 8994.7 / 9052.0 / 8876.0 / 8981.4 | 2.0% |
|
||||
| 10 | static hit | live | 185.3 | 156.1 / 187.7 / 174.1 / 194.2 | 20.5% |
|
||||
| 10 | static hit | oracle | 176.8 | 199.9 / 161.9 / 195.0 / 162.5 | 21.5% |
|
||||
| 10 | late param hit | live | 328.4 | 311.9 / 336.2 / 323.0 / 342.4 | 9.3% |
|
||||
| 10 | late param hit | oracle | 337.6 | 343.0 / 329.2 / 356.3 / 324.3 | 9.5% |
|
||||
| 10 | method miss | live | 800.4 | 762.6 / 801.2 / 798.6 / 804.4 | 5.2% |
|
||||
| 10 | method miss | oracle | 768.8 | 770.0 / 764.6 / 833.1 / 762.5 | 9.2% |
|
||||
| 10 | path miss | live | 625.5 | 594.6 / 631.3 / 620.3 / 628.1 | 5.9% |
|
||||
| 10 | path miss | oracle | 606.6 | 603.8 / 610.1 / 657.9 / 591.5 | 10.9% |
|
||||
| 100 | static hit | live | 201.2 | 202.2 / 200.8 / 197.6 / 207.2 | 4.8% |
|
||||
| 100 | static hit | oracle | 206.9 | 211.7 / 196.6 / 213.9 / 201.7 | 8.4% |
|
||||
| 100 | late param hit | live | 878.0 | 861.1 / 857.0 / 907.3 / 880.5 | 5.7% |
|
||||
| 100 | late param hit | oracle | 893.0 | 888.7 / 869.0 / 942.1 / 895.2 | 8.2% |
|
||||
| 100 | method miss | live | 2524.8 | 2424.2 / 2513.7 / 2579.6 / 2531.5 | 6.2% |
|
||||
| 100 | method miss | oracle | 2515.2 | 2473.4 / 2527.3 / 2595.9 / 2509.5 | 4.9% |
|
||||
| 100 | path miss | live | 3054.2 | 2965.2 / 3023.7 / 3113.5 / 3070.6 | 4.9% |
|
||||
| 100 | path miss | oracle | 3075.6 | 3002.5 / 3087.9 / 3179.5 / 3064.3 | 5.8% |
|
||||
| 500 | static hit | live | 202.2 | 201.8 / 202.3 / 195.1 / 210.3 | 7.5% |
|
||||
| 500 | static hit | oracle | 206.3 | 212.1 / 197.8 / 213.2 / 201.1 | 7.5% |
|
||||
| 500 | late param hit | live | 2930.6 | 2829.6 / 2804.3 / 2980.0 / 3016.2 | 7.2% |
|
||||
| 500 | late param hit | oracle | 2878.8 | 2865.8 / 2832.6 / 2916.8 / 2881.2 | 2.9% |
|
||||
| 500 | method miss | live | 11903.6 | 11635.5 / 11518.4 / 11946.5 / 12031.2 | 4.3% |
|
||||
| 500 | method miss | oracle | 12101.5 | 11822.5 / 11856.4 / 12275.6 / 12190.0 | 3.7% |
|
||||
| 500 | path miss | live | 15513.7 | 15103.4 / 14971.6 / 15664.8 / 16034.1 | 6.8% |
|
||||
| 500 | path miss | oracle | 15719.6 | 15158.8 / 15479.0 / 16084.0 / 15885.7 | 5.9% |
|
||||
|
||||
load average: start 2.47 2.14 6.86, end 2.58 2.21 6.64
|
||||
raw samples: bench/baseline/router-ed47836/lookup-raw.json
|
||||
| routes | workload | B / A | median ratio | 95% CI | rounds |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| 10 | static hit | oracle / live | 0.9507 (-4.9%) | 0.8629 – 1.1186 (-13.7% … +11.9%) | 84 |
|
||||
| 10 | late param hit | oracle / live | 1.0415 (+4.1%) | 0.9840 – 1.0982 (-1.6% … +9.8%) | 84 |
|
||||
| 10 | method miss | oracle / live | 0.9809 (-1.9%) | 0.9563 – 1.0076 (-4.4% … +0.8%) | 84 |
|
||||
| 10 | path miss | oracle / live | 0.9919 (-0.8%) | 0.9676 – 1.0141 (-3.2% … +1.4%) | 84 |
|
||||
| 100 | static hit | oracle / live | 1.0082 (+0.8%) | 0.9808 – 1.0453 (-1.9% … +4.5%) | 84 |
|
||||
| 100 | late param hit | oracle / live | 1.0247 (+2.5%) | 1.0192 – 1.0292 (+1.9% … +2.9%) | 84 |
|
||||
| 100 | method miss | oracle / live | 1.0055 (+0.6%) | 1.0033 – 1.0072 (+0.3% … +0.7%) | 84 |
|
||||
| 100 | path miss | oracle / live | 1.0165 (+1.7%) | 1.0119 – 1.0185 (+1.2% … +1.9%) | 84 |
|
||||
| 500 | static hit | oracle / live | 1.0107 (+1.1%) | 0.9782 – 1.0453 (-2.2% … +4.5%) | 84 |
|
||||
| 500 | late param hit | oracle / live | 0.9838 (-1.6%) | 0.9784 – 1.0076 (-2.2% … +0.8%) | 84 |
|
||||
| 500 | method miss | oracle / live | 1.0197 (+2.0%) | 1.0161 – 1.0235 (+1.6% … +2.3%) | 84 |
|
||||
| 500 | path miss | oracle / live | 1.0161 (+1.6%) | 1.0047 – 1.0257 (+0.5% … +2.6%) | 84 |
|
||||
|
||||
load average: start 0.27 0.11 0.04, end 0.79 0.31 0.12; cpuset 6-7,14-15
|
||||
raw samples: out/lookup-raw.json
|
||||
Reference in new issue
Block a user