docs(bench): regenerate the cross-framework tables on a box that was not busy
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>
This commit is contained in:
3 files changed
+271
-263
No files matched your search
@@ -153,7 +153,7 @@ without growing the runtime dependency tree past `reflect-metadata`:
|
||||
|
||||
We built a reproducible [autocannon harness](./BENCHMARKS.md) comparing green-tea to Express 5, Fastify 5, NestJS (on both Express and Fastify), and raw Node `http` — and we wrote it to be **hard on ourselves**, not flattering.
|
||||
|
||||
On that harness green-tea lands in the fast group on Node — with Fastify and NestJS-on-Fastify, and behind raw `http` with no framework at all — and Express and NestJS-on-Express are roughly 3× back. Which member of that fast group tops a given scenario moves between runs by more than the gap between them, so the table below is the answer and a sentence here is not — a ranking written into a README once is a claim that stops being re-measured, and ends up contradicting the file it links to.
|
||||
On that harness green-tea is in the same class as Fastify and NestJS-on-Fastify, roughly 2.8× ahead of Express, and behind raw `http` with no framework at all. Within that class the shape reproduces on two very different machines: green-tea is **behind** Fastify on the JSON, routing and pipeline scenarios, and **ahead** of it on POST-plus-validation. How far behind is a property of the box rather than a constant — 2-8% on a laptop M4 Max, 7-15% on an idle desktop Ryzen — which is why the table carries its hardware and its date, and why a percentage quoted without them says little. Read [BENCHMARKS.md](./BENCHMARKS.md) rather than a sentence here: a ranking written into prose once is a claim nobody re-measures.
|
||||
|
||||
The question a release actually has to pass is the other one — *did the last N commits cost anything* — and comparing today's numbers against a table generated weeks ago answers it with two machines in a mood rather than two versions. `npm run bench:compare` runs both trees on one box in one sitting, alternating sides; `26.9.0-beta.1 → 26.9.0-beta.2` came out flat on every case.
|
||||
|
||||
|
||||
Reference in new issue
Block a user