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:compare
|
||||
> tsx bench/compare.ts
|
||||
|
||||
|
||||
| Scenario | base | head | Δ | |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| hello | 88,212 | 88,236 | +0.0% | overlaps |
|
||||
| param | 86,508 | 85,885 | -0.7% | overlaps |
|
||||
| pipeline (3 steps) | 80,189 | 80,934 | +0.9% | overlaps |
|
||||
| steps5 | 74,359 | 73,975 | -0.5% | overlaps |
|
||||
| validate (POST) | 70,607 | 69,903 | -1.0% | overlaps |
|
||||
| hello + security | 83,913 | 83,802 | -0.1% | overlaps |
|
||||
| hello + cors predicate | 82,028 | 80,445 | -1.9% | overlaps |
|
||||
| preflight + cors predicate | 114,377 | 114,010 | -0.3% | overlaps |
|
||||
| param, 50 routes | 82,476 | 82,045 | -0.5% | overlaps |
|
||||
| param, 200 routes | 72,957 | 73,306 | +0.5% | overlaps |
|
||||
|
||||
cors.origins calls — base: 1 per GET, 1 per preflight
|
||||
cors.origins calls — head: 1 per GET, 1 per preflight
|
||||
exit 0
|
||||
Reference in new issue
Block a user