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>
34 lines
2.3 KiB
Plaintext
34 lines
2.3 KiB
Plaintext
|
|
> @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 | 62.0 | 57.9 / 65.8 / 60.3 / 62.7 / 61.8 | 12.7% |
|
|
| live | 10 | late param hit | 123.8 | 124.0 / 120.4 / 122.1 / 124.3 / 128.4 | 6.4% |
|
|
| live | 10 | method miss | 309.0 | 305.7 / 305.6 / 320.1 / 310.8 / 311.6 | 4.7% |
|
|
| live | 10 | path miss | 248.4 | 242.7 / 242.5 / 253.7 / 251.0 / 248.7 | 4.5% |
|
|
| live | 100 | static hit | 69.5 | 66.7 / 68.7 / 69.2 / 71.6 / 71.5 | 7.1% |
|
|
| live | 100 | late param hit | 352.2 | 345.1 / 348.3 / 349.9 / 355.2 / 365.1 | 5.7% |
|
|
| live | 100 | method miss | 1265.3 | 1273.8 / 1256.0 / 1254.2 / 1279.7 / 1267.1 | 2.0% |
|
|
| live | 100 | path miss | 1464.9 | 1462.8 / 1451.3 / 1462.3 / 1485.2 / 1470.6 | 2.3% |
|
|
| live | 500 | static hit | 67.8 | 67.2 / 66.9 / 68.1 / 69.3 / 67.7 | 3.4% |
|
|
| live | 500 | late param hit | 1313.7 | 1362.0 / 1293.9 / 1309.7 / 1313.7 / 1316.9 | 5.2% |
|
|
| live | 500 | method miss | 6778.2 | 7068.9 / 6783.2 / 6634.3 / 6816.4 / 6689.2 | 6.4% |
|
|
| live | 500 | path miss | 9005.3 | 9445.9 / 9015.5 / 8965.0 / 9032.4 / 8834.1 | 6.8% |
|
|
| oracle | 10 | static hit | 65.2 | 62.2 / 66.6 / 66.6 / 65.2 / 58.0 | 13.1% |
|
|
| oracle | 10 | late param hit | 123.9 | 130.7 / 123.5 / 125.2 / 122.9 / 120.1 | 8.5% |
|
|
| oracle | 10 | method miss | 312.7 | 311.4 / 314.2 / 312.2 / 316.8 / 309.1 | 2.4% |
|
|
| oracle | 10 | path miss | 249.0 | 248.6 / 253.1 / 247.3 / 249.0 / 248.9 | 2.3% |
|
|
| oracle | 100 | static hit | 69.4 | 69.5 / 71.1 / 69.8 / 67.5 / 66.7 | 6.4% |
|
|
| oracle | 100 | late param hit | 349.3 | 347.5 / 352.5 / 349.6 / 347.2 / 354.0 | 1.9% |
|
|
| oracle | 100 | method miss | 1263.6 | 1294.1 / 1243.1 / 1251.2 / 1286.5 / 1258.0 | 4.0% |
|
|
| oracle | 100 | path miss | 1466.2 | 1511.6 / 1464.0 / 1459.5 / 1480.7 / 1449.1 | 4.3% |
|
|
| oracle | 500 | static hit | 66.0 | 67.0 / 67.3 / 65.8 / 64.9 / 65.1 | 3.6% |
|
|
| oracle | 500 | late param hit | 1317.6 | 1313.2 / 1310.2 / 1323.5 / 1294.5 / 1363.2 | 5.2% |
|
|
| oracle | 500 | method miss | 6753.3 | 6717.3 / 6758.7 / 6666.4 / 6876.3 / 6750.7 | 3.1% |
|
|
| oracle | 500 | path miss | 9015.3 | 8998.0 / 9021.6 / 8980.8 / 9100.7 / 8884.0 | 2.4% |
|
|
|
|
load average: start 3.42 2.40 6.66, end 2.89 2.48 6.26
|
|
raw samples: bench/baseline/router-ed47836/lookup-aa-raw.json
|