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
@@ -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
|
||||
Reference in new issue
Block a user