Measured on an otherwise idle Ryzen 3700X over ssh, with the same Node, Deno and Bun versions the laptop runs, after two attempts here were thrown away. The absolute numbers drop to roughly a third — a 2019 desktop part against an M4 Max — and that is the trade: a slower box whose numbers mean something beats a faster one whose numbers track what else was on screen. The shape reproduced across both machines, which is the result worth having. green-tea is behind Fastify on hello, param and pipeline, ahead of it on validate, and ~2.8x ahead of Express, on the M4 and on the Ryzen alike. The size of the gap did not reproduce (2-8% there, 7-15% here), so the README now says the direction and points at the table for the number, rather than quoting a percentage that is really a fact about somebody's hardware. CV lands between 0.1% and 1.3% across every row, against 4-6% on the contended runs. Fixes a sentence added an hour ago claiming the ordering inside the fast group moves between runs by more than the gap between its members. It does not — it held on both boxes — and the claim happened to be the one that flattered us. Cross-framework tables and the runtime table are regenerated; the hand-written section below the marker, including the release gate, is untouched. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
446 lines
10 KiB
JSON
446 lines
10 KiB
JSON
{
|
|
"env": {
|
|
"date": "2026-09-23",
|
|
"commit": "daf0fed",
|
|
"node": "v22.22.2",
|
|
"os": "linux",
|
|
"cpu": "AMD Ryzen 7 3700X 8-Core Processor (16 cores)",
|
|
"ram": "67 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": 41630.55,
|
|
"min": 41342.55,
|
|
"max": 41973.82,
|
|
"stddev": 232.79156158245826,
|
|
"cv": 0.0055977118567263305
|
|
},
|
|
"p50": 2,
|
|
"p99": 3,
|
|
"p999": 4
|
|
},
|
|
{
|
|
"framework": "fastify",
|
|
"reqSec": {
|
|
"median": 32170.19,
|
|
"min": 31235.64,
|
|
"max": 32355.64,
|
|
"stddev": 403.36620390905324,
|
|
"cv": 0.012593571579786219
|
|
},
|
|
"p50": 3,
|
|
"p99": 3,
|
|
"p999": 5
|
|
},
|
|
{
|
|
"framework": "express",
|
|
"reqSec": {
|
|
"median": 10545.82,
|
|
"min": 10480.37,
|
|
"max": 10625.1,
|
|
"stddev": 47.02831087759791,
|
|
"cv": 0.004456044641032285
|
|
},
|
|
"p50": 8,
|
|
"p99": 13,
|
|
"p999": 18
|
|
},
|
|
{
|
|
"framework": "green-tea",
|
|
"reqSec": {
|
|
"median": 29776.73,
|
|
"min": 29557.1,
|
|
"max": 29872.73,
|
|
"stddev": 120.92248317000461,
|
|
"cv": 0.004066812850878315
|
|
},
|
|
"p50": 3,
|
|
"p99": 6,
|
|
"p999": 7
|
|
},
|
|
{
|
|
"framework": "nestjs-express",
|
|
"reqSec": {
|
|
"median": 9679.64,
|
|
"min": 9566.91,
|
|
"max": 9738.55,
|
|
"stddev": 58.2951632985104,
|
|
"cv": 0.006025529205104781
|
|
},
|
|
"p50": 9,
|
|
"p99": 15,
|
|
"p999": 21
|
|
},
|
|
{
|
|
"framework": "nestjs-fastify",
|
|
"reqSec": {
|
|
"median": 32418.91,
|
|
"min": 32103.28,
|
|
"max": 32582.55,
|
|
"stddev": 159.574135748874,
|
|
"cv": 0.004929287112917938
|
|
},
|
|
"p50": 3,
|
|
"p99": 4,
|
|
"p999": 6
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Route param",
|
|
"name": "param",
|
|
"rows": [
|
|
{
|
|
"framework": "raw-http",
|
|
"reqSec": {
|
|
"median": 41755.64,
|
|
"min": 40952.73,
|
|
"max": 42017.46,
|
|
"stddev": 439.72294183496837,
|
|
"cv": 0.010587809774433589
|
|
},
|
|
"p50": 2,
|
|
"p99": 3,
|
|
"p999": 4
|
|
},
|
|
{
|
|
"framework": "fastify",
|
|
"reqSec": {
|
|
"median": 31708.37,
|
|
"min": 31359.28,
|
|
"max": 31846.55,
|
|
"stddev": 168.73300179869975,
|
|
"cv": 0.005328784944282288
|
|
},
|
|
"p50": 3,
|
|
"p99": 4,
|
|
"p999": 5
|
|
},
|
|
{
|
|
"framework": "express",
|
|
"reqSec": {
|
|
"median": 10375.64,
|
|
"min": 10364,
|
|
"max": 10452.73,
|
|
"stddev": 37.668132419858544,
|
|
"cv": 0.003621859193349617
|
|
},
|
|
"p50": 9,
|
|
"p99": 12,
|
|
"p999": 17
|
|
},
|
|
{
|
|
"framework": "green-tea",
|
|
"reqSec": {
|
|
"median": 28706.19,
|
|
"min": 28562.19,
|
|
"max": 29050.91,
|
|
"stddev": 166.92265315408858,
|
|
"cv": 0.005803163694455583
|
|
},
|
|
"p50": 3,
|
|
"p99": 6,
|
|
"p999": 7
|
|
},
|
|
{
|
|
"framework": "nestjs-express",
|
|
"reqSec": {
|
|
"median": 9257.1,
|
|
"min": 9244,
|
|
"max": 9285.46,
|
|
"stddev": 16.97885461390117,
|
|
"cv": 0.0018327336012062287
|
|
},
|
|
"p50": 10,
|
|
"p99": 15,
|
|
"p999": 21
|
|
},
|
|
{
|
|
"framework": "nestjs-fastify",
|
|
"reqSec": {
|
|
"median": 29880,
|
|
"min": 29744.73,
|
|
"max": 29961.46,
|
|
"stddev": 90.38256681462417,
|
|
"cv": 0.003027383166346
|
|
},
|
|
"p50": 3,
|
|
"p99": 4,
|
|
"p999": 6
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Pipeline (3 steps)",
|
|
"name": "pipeline",
|
|
"approximation": true,
|
|
"rows": [
|
|
{
|
|
"framework": "raw-http",
|
|
"reqSec": {
|
|
"median": 39896.73,
|
|
"min": 39847.28,
|
|
"max": 40440.73,
|
|
"stddev": 235.6558649726337,
|
|
"cv": 0.0058846766178520865
|
|
},
|
|
"p50": 2,
|
|
"p99": 3,
|
|
"p999": 5
|
|
},
|
|
{
|
|
"framework": "fastify",
|
|
"reqSec": {
|
|
"median": 31436.37,
|
|
"min": 31078.55,
|
|
"max": 31562.91,
|
|
"stddev": 185.21052212010017,
|
|
"cv": 0.005909263441314207
|
|
},
|
|
"p50": 3,
|
|
"p99": 4,
|
|
"p999": 6
|
|
},
|
|
{
|
|
"framework": "express",
|
|
"reqSec": {
|
|
"median": 10365.46,
|
|
"min": 10170.55,
|
|
"max": 10542.19,
|
|
"stddev": 129.83340146510884,
|
|
"cv": 0.01252603707960138
|
|
},
|
|
"p50": 9,
|
|
"p99": 12,
|
|
"p999": 18
|
|
},
|
|
{
|
|
"framework": "green-tea",
|
|
"reqSec": {
|
|
"median": 26838.55,
|
|
"min": 26783.28,
|
|
"max": 26872,
|
|
"stddev": 35.930271582608675,
|
|
"cv": 0.0013390899572667937
|
|
},
|
|
"p50": 3,
|
|
"p99": 6,
|
|
"p999": 8
|
|
},
|
|
{
|
|
"framework": "nestjs-express",
|
|
"reqSec": {
|
|
"median": 9256.37,
|
|
"min": 9187.28,
|
|
"max": 9302.19,
|
|
"stddev": 42.180541200890175,
|
|
"cv": 0.0045584972844857205
|
|
},
|
|
"p50": 10,
|
|
"p99": 15,
|
|
"p999": 22
|
|
},
|
|
{
|
|
"framework": "nestjs-fastify",
|
|
"reqSec": {
|
|
"median": 29402.91,
|
|
"min": 29151.28,
|
|
"max": 29689.46,
|
|
"stddev": 189.99449229911926,
|
|
"cv": 0.006460862473261261
|
|
},
|
|
"p50": 3,
|
|
"p99": 4,
|
|
"p999": 6
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "POST JSON + validation",
|
|
"name": "validate",
|
|
"rows": [
|
|
{
|
|
"framework": "raw-http",
|
|
"reqSec": {
|
|
"median": 31783.28,
|
|
"min": 31517.1,
|
|
"max": 31824.73,
|
|
"stddev": 111.5598838292694,
|
|
"cv": 0.003516116881358333
|
|
},
|
|
"p50": 3,
|
|
"p99": 5,
|
|
"p999": 6
|
|
},
|
|
{
|
|
"framework": "fastify",
|
|
"reqSec": {
|
|
"median": 20429.82,
|
|
"min": 20397.82,
|
|
"max": 20601.46,
|
|
"stddev": 73.12471046096515,
|
|
"cv": 0.0035727493036941836
|
|
},
|
|
"p50": 4,
|
|
"p99": 8,
|
|
"p999": 9
|
|
},
|
|
{
|
|
"framework": "express",
|
|
"reqSec": {
|
|
"median": 8440.37,
|
|
"min": 8407.64,
|
|
"max": 8492,
|
|
"stddev": 29.52737333390846,
|
|
"cv": 0.003496408589959768
|
|
},
|
|
"p50": 11,
|
|
"p99": 16,
|
|
"p999": 24
|
|
},
|
|
{
|
|
"framework": "green-tea",
|
|
"reqSec": {
|
|
"median": 22005.1,
|
|
"min": 21736,
|
|
"max": 22186.91,
|
|
"stddev": 149.1731413626461,
|
|
"cv": 0.006790967759795645
|
|
},
|
|
"p50": 4,
|
|
"p99": 7,
|
|
"p999": 9
|
|
},
|
|
{
|
|
"framework": "nestjs-express",
|
|
"reqSec": {
|
|
"median": 7666.37,
|
|
"min": 7645.28,
|
|
"max": 7703.46,
|
|
"stddev": 20.418688106732038,
|
|
"cv": 0.002662071942974812
|
|
},
|
|
"p50": 12,
|
|
"p99": 18,
|
|
"p999": 26
|
|
},
|
|
{
|
|
"framework": "nestjs-fastify",
|
|
"reqSec": {
|
|
"median": 18596.8,
|
|
"min": 18540.37,
|
|
"max": 18658.19,
|
|
"stddev": 37.943211988443956,
|
|
"cv": 0.0020404741150848267
|
|
},
|
|
"p50": 4,
|
|
"p99": 8,
|
|
"p999": 11
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"stepScaling": [
|
|
{
|
|
"path": "/steps/0",
|
|
"steps": 0,
|
|
"reqSec": 29196.37
|
|
},
|
|
{
|
|
"path": "/steps/3",
|
|
"steps": 3,
|
|
"reqSec": 26563.64
|
|
},
|
|
{
|
|
"path": "/steps/5",
|
|
"steps": 5,
|
|
"reqSec": 25314.19
|
|
}
|
|
],
|
|
"secureCost": [
|
|
{
|
|
"label": "security:false (parity)",
|
|
"reqSec": 29776.73
|
|
},
|
|
{
|
|
"label": "security:true (default)",
|
|
"reqSec": 28918.55
|
|
}
|
|
],
|
|
"runtimes": [
|
|
{
|
|
"runtime": "node",
|
|
"scenario": "JSON hello (overhead)",
|
|
"reqSec": 30378.91
|
|
},
|
|
{
|
|
"runtime": "node",
|
|
"scenario": "Route param",
|
|
"reqSec": 29203.64
|
|
},
|
|
{
|
|
"runtime": "node",
|
|
"scenario": "Pipeline (3 steps)",
|
|
"reqSec": 27208
|
|
},
|
|
{
|
|
"runtime": "node",
|
|
"scenario": "POST JSON + validation",
|
|
"reqSec": 22608.73
|
|
},
|
|
{
|
|
"runtime": "deno",
|
|
"scenario": "JSON hello (overhead)",
|
|
"reqSec": 51888
|
|
},
|
|
{
|
|
"runtime": "deno",
|
|
"scenario": "Route param",
|
|
"reqSec": 51785.6
|
|
},
|
|
{
|
|
"runtime": "deno",
|
|
"scenario": "Pipeline (3 steps)",
|
|
"reqSec": 50692.37
|
|
},
|
|
{
|
|
"runtime": "deno",
|
|
"scenario": "POST JSON + validation",
|
|
"reqSec": 35742.55
|
|
},
|
|
{
|
|
"runtime": "bun",
|
|
"scenario": "JSON hello (overhead)",
|
|
"reqSec": 46299.64
|
|
},
|
|
{
|
|
"runtime": "bun",
|
|
"scenario": "Route param",
|
|
"reqSec": 42788.37
|
|
},
|
|
{
|
|
"runtime": "bun",
|
|
"scenario": "Pipeline (3 steps)",
|
|
"reqSec": 39643.64
|
|
},
|
|
{
|
|
"runtime": "bun",
|
|
"scenario": "POST JSON + validation",
|
|
"reqSec": 31960
|
|
}
|
|
]
|
|
} |