The baseline CARD-10 compares the radix index against, captured before any router change. Kept with its environment record and every raw sample. bench:lookup on the linear matcher, five runs of 105 samples per cell. Median ns per lookup: routes static hit late param method miss path miss 10 61.3 123.3 313.1 247.1 100 67.6 343.4 1263.7 1463.3 500 67.8 1326.8 6732.2 8973.4 Run-to-run spread of the per-run medians is 2.0-17.5%. An A/A run (live router against the byte-identical oracle, same protocol) differs by +5.2% on the 10-route static hit and by at most 2.7% elsewhere, so D4's 5% limit at 10 routes sits at the noise floor for that cell. That is recorded for the D4 decision, not resolved here. bench:compare, run once A/A, is stored separately as end-to-end req/s only: every case within 1.9%. Measured on an Apple M4 Max on battery power, load average 2.4-3.4 on 16 cores; the comparison run should use the same power source. Refs #109 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
22 lines
826 B
Plaintext
22 lines
826 B
Plaintext
|
|
> @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
|