Files
core/bench/results.json
T
chrnx e61771077c
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 15s
CI / build (pull_request) Successful in 31s
CI / runtimes (deno) (pull_request) Successful in 19s
CI / runtimes (edge) (pull_request) Successful in 14s
docs(bench): refresh the tables and record what moved between releases
The tables were measured on 2026-07-07 at `fe1831a`, two releases ago. Re-measured at
`8c5855c` with the runtime matrix included, every row under 1.2% CV.

The headline is not in the cross-framework tables. green-tea sits within 2% of fastify on
`hello` and `param` and second only to `raw-http` on `validate` — but the same application
on Deno serves 153,408 req/s against Node's 90,976, and on Bun 131,674. Node's own `http`
module with no framework manages 119,357. The runtime-neutral boundary that costs on Node
is what makes those rows possible, and until this run nothing measured them.

The notes below the marker say what a table cannot. In order: the release gate — this
release is neutral against `26.8.0-beta.1` on every scenario but the CORS preflight, which
gains 2.7%; the interval against `26.7`, which is roughly −5% to −8% and is **not** a
regression, because July matched routes by splitting a string in one flat file and had no
constraints, no specificity, no correlation and one adapter; the figures recorded in the
code when each change landed, including one that reached 45% of a request before it was
fixed; and what is still unattributed, which is most of it.

That last part is the point. Three candidates were measured and none of them explain the
interval: `randomUUID` is 0.7% and lands within noise, replacing specificity ranking with
July's first-match-wins is noise, and the bundle versus the source is noise. A section that
explained everything would be a defence. This one says what was found and what was not.

The measurements were always there — `core.ts`, `bus.ts`, `pipeline.ts`, `headers.ts`,
`body.ts`, `router.ts` all carry them, with alternatives compared and rejected. They cite
different baselines, 4.4 µs to 10.19 µs, because each was taken against whatever a request
cost that day, so they cannot be added up. What was missing was never rigour. It was a
number per version against a fixed baseline, in the file where the question gets asked.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-01 21:26:27 -05:00

446 lines
9.9 KiB
JSON

{
"env": {
"date": "2026-09-02",
"commit": "8c5855c",
"node": "v22.22.2",
"os": "darwin",
"cpu": "Apple M4 Max (16 cores)",
"ram": "69 GB",
"pinned": false
},
"config": {
"conns": 100,
"duration": 10,
"runs": 5,
"warmup": 1,
"pipelining": 1
},
"scenarios": [
{
"title": "JSON hello (overhead)",
"name": "hello",
"rows": [
{
"framework": "raw-http",
"reqSec": {
"median": 119357.1,
"min": 118560,
"max": 120066.91,
"stddev": 484.9030139151553,
"cv": 0.0040636145553490976
},
"p50": 0,
"p99": 1,
"p999": 1
},
{
"framework": "fastify",
"reqSec": {
"median": 89096.73,
"min": 88864,
"max": 89207.28,
"stddev": 111.97759400880093,
"cv": 0.001257219726589825
},
"p50": 1,
"p99": 1,
"p999": 2
},
{
"framework": "express",
"reqSec": {
"median": 24677.1,
"min": 24646.55,
"max": 24768.73,
"stddev": 43.02015834466458,
"cv": 0.0017417832565876405
},
"p50": 3,
"p99": 5,
"p999": 8
},
{
"framework": "green-tea",
"reqSec": {
"median": 87473.46,
"min": 86903.28,
"max": 87607.28,
"stddev": 280.84365746087286,
"cv": 0.0032155347907296527
},
"p50": 1,
"p99": 2,
"p999": 2
},
{
"framework": "nestjs-express",
"reqSec": {
"median": 21878.55,
"min": 21845.1,
"max": 21952.73,
"stddev": 41.00873789816055,
"cv": 0.0018731606009975037
},
"p50": 4,
"p99": 6,
"p999": 9
},
{
"framework": "nestjs-fastify",
"reqSec": {
"median": 98039.28,
"min": 96072.73,
"max": 99680,
"stddev": 1215.4038343760499,
"cv": 0.012396669934655963
},
"p50": 0,
"p99": 1,
"p999": 2
}
]
},
{
"title": "Route param",
"name": "param",
"rows": [
{
"framework": "raw-http",
"reqSec": {
"median": 120904.73,
"min": 119927.28,
"max": 121713.46,
"stddev": 658.0250991747977,
"cv": 0.005441723483024015
},
"p50": 0,
"p99": 1,
"p999": 1
},
{
"framework": "fastify",
"reqSec": {
"median": 88317.1,
"min": 87997.1,
"max": 88439.28,
"stddev": 182.99174422907566,
"cv": 0.00207430857941761
},
"p50": 1,
"p99": 1,
"p999": 2
},
{
"framework": "express",
"reqSec": {
"median": 24200,
"min": 24157.82,
"max": 24259.64,
"stddev": 39.43298619176589,
"cv": 0.0016290899720752198
},
"p50": 3,
"p99": 5,
"p999": 8
},
{
"framework": "green-tea",
"reqSec": {
"median": 86594.91,
"min": 86368,
"max": 86880,
"stddev": 179.11650003279965,
"cv": 0.002068552609808656
},
"p50": 1,
"p99": 2,
"p999": 2
},
{
"framework": "nestjs-express",
"reqSec": {
"median": 21181.82,
"min": 21149.82,
"max": 21517.82,
"stddev": 139.0670808494951,
"cv": 0.006540068168697097
},
"p50": 4,
"p99": 6,
"p999": 9
},
{
"framework": "nestjs-fastify",
"reqSec": {
"median": 91848.73,
"min": 91825.46,
"max": 92599.28,
"stddev": 296.55679952413783,
"cv": 0.00322222064035544
},
"p50": 1,
"p99": 1,
"p999": 2
}
]
},
{
"title": "Pipeline (3 steps)",
"name": "pipeline",
"approximation": true,
"rows": [
{
"framework": "raw-http",
"reqSec": {
"median": 118996.37,
"min": 118583.28,
"max": 119584,
"stddev": 341.82644850274596,
"cv": 0.002872466494470492
},
"p50": 0,
"p99": 1,
"p999": 1
},
{
"framework": "fastify",
"reqSec": {
"median": 86670.55,
"min": 86490.19,
"max": 86792.73,
"stddev": 97.03476704769095,
"cv": 0.0011197471063834074
},
"p50": 1,
"p99": 1,
"p999": 2
},
{
"framework": "express",
"reqSec": {
"median": 24325.1,
"min": 24281.46,
"max": 24406.55,
"stddev": 50.44878456414985,
"cv": 0.002073096921615235
},
"p50": 3,
"p99": 5,
"p999": 8
},
{
"framework": "green-tea",
"reqSec": {
"median": 80078.55,
"min": 80026.19,
"max": 80375.28,
"stddev": 126.5427427235537,
"cv": 0.00157915416330658
},
"p50": 1,
"p99": 2,
"p999": 2
},
{
"framework": "nestjs-express",
"reqSec": {
"median": 20872,
"min": 20800.73,
"max": 20940.37,
"stddev": 44.78034640330492,
"cv": 0.0021458031999967474
},
"p50": 4,
"p99": 6,
"p999": 9
},
{
"framework": "nestjs-fastify",
"reqSec": {
"median": 89527.28,
"min": 87572.37,
"max": 90027.64,
"stddev": 867.875358507201,
"cv": 0.009726340137622384
},
"p50": 1,
"p99": 2,
"p999": 2
}
]
},
{
"title": "POST JSON + validation",
"name": "validate",
"rows": [
{
"framework": "raw-http",
"reqSec": {
"median": 104288,
"min": 103776,
"max": 104916.37,
"stddev": 371.6125197245094,
"cv": 0.0035614220793380035
},
"p50": 0,
"p99": 1,
"p999": 1
},
{
"framework": "fastify",
"reqSec": {
"median": 65905.46,
"min": 65725.1,
"max": 66366.55,
"stddev": 217.1439762369652,
"cv": 0.0032914527300013986
},
"p50": 1,
"p99": 2,
"p999": 3
},
{
"framework": "express",
"reqSec": {
"median": 20297.46,
"min": 20157.82,
"max": 20413.82,
"stddev": 99.50819415505447,
"cv": 0.004902635960088364
},
"p50": 4,
"p99": 6,
"p999": 10
},
{
"framework": "green-tea",
"reqSec": {
"median": 70298.19,
"min": 68971.64,
"max": 70606.55,
"stddev": 704.8749988359651,
"cv": 0.01008804689681251
},
"p50": 1,
"p99": 2,
"p999": 3
},
{
"framework": "nestjs-express",
"reqSec": {
"median": 18787.64,
"min": 18684.37,
"max": 18861.82,
"stddev": 57.13389375843402,
"cv": 0.0030419312672842124
},
"p50": 5,
"p99": 7,
"p999": 10
},
{
"framework": "nestjs-fastify",
"reqSec": {
"median": 63317.82,
"min": 62453.82,
"max": 63746.91,
"stddev": 543.811870536126,
"cv": 0.00860786685722159
},
"p50": 1,
"p99": 2,
"p999": 3
}
]
}
],
"stepScaling": [
{
"path": "/steps/0",
"steps": 0,
"reqSec": 88107.64
},
{
"path": "/steps/3",
"steps": 3,
"reqSec": 79950.55
},
{
"path": "/steps/5",
"steps": 5,
"reqSec": 74126.55
}
],
"secureCost": [
{
"label": "security:false (parity)",
"reqSec": 87473.46
},
{
"label": "security:true (default)",
"reqSec": 83773.1
}
],
"runtimes": [
{
"runtime": "node",
"scenario": "JSON hello (overhead)",
"reqSec": 90976
},
{
"runtime": "node",
"scenario": "Route param",
"reqSec": 88904.73
},
{
"runtime": "node",
"scenario": "Pipeline (3 steps)",
"reqSec": 82045.1
},
{
"runtime": "node",
"scenario": "POST JSON + validation",
"reqSec": 72235.64
},
{
"runtime": "deno",
"scenario": "JSON hello (overhead)",
"reqSec": 153408
},
{
"runtime": "deno",
"scenario": "Route param",
"reqSec": 146368
},
{
"runtime": "deno",
"scenario": "Pipeline (3 steps)",
"reqSec": 136256
},
{
"runtime": "deno",
"scenario": "POST JSON + validation",
"reqSec": 106661.82
},
{
"runtime": "bun",
"scenario": "JSON hello (overhead)",
"reqSec": 131674.19
},
{
"runtime": "bun",
"scenario": "Route param",
"reqSec": 126909.1
},
{
"runtime": "bun",
"scenario": "Pipeline (3 steps)",
"reqSec": 117489.46
},
{
"runtime": "bun",
"scenario": "POST JSON + validation",
"reqSec": 95124.37
}
]
}