Skip to content

Benchmarks ​

Eight frameworks, two runtimes, eleven scenarios, one frozen contract. Every application returns byte-for-byte identical responses to byte-for-byte identical requests, verified mechanically on the exact builds that were measured. Without that, a benchmark compares implementations, not frameworks.

The harness, every app and every raw result are public in AsenaJs/benchmark: clone it and run the same sweep on your own machine.

Read the charts honestly: Elysia and Hono are right there

Elysia and Hono are minimal routers, and on a minimal application they are excellent choices. On most charts the top three — Elysia, Hono and Asena · Ergenecore — sit within a few percent of each other, and Elysia leads 5 of the 8 headline scenarios. If your service is a handful of routes, any of the three will do.

Asena is built for the application after that one: controllers, injected services, middleware, validation, lifecycle hooks, a container that wires it together. That is the shape NestJS gives you, and NestJS is the comparison this page is really about.

2.59×
Asena outruns NestJS out of the boxPlaintext — 211,630 vs 81,623 req/s.
3.87×Validation · Zod vs class-validator
1.74×DB read · Drizzle vs TypeORM
2.59×Full API endpoint
Asena · Ergenecore vs NestJS · Express · Node. Each stack runs its own validator and data layer, so those two badges compare the stacks you get, libraries included.

Asena vs NestJS ​

NestJS is the framework Asena is most often compared to: both are decorator-driven, both put an IoC container at the centre, both ask you to write controllers and inject services. The difference is what runs underneath.

Plaintext
2.59×
faster than NestJS + Express on Node (1.92× on Bun)
1.70× against NestJS + Fastify on Node (1.65× on Bun)
211,630Asena · Ergenecore · Bun
81,623NestJS · Express · Node
110,435NestJS · Express · Bun
124,606NestJS · Fastify · Node
128,142NestJS · Fastify · Bun
Request validation
3.87×
faster than NestJS + Express on Node (3.32× on Bun)
3.04× against NestJS + Fastify on Node (2.96× on Bun)
135,012Asena · Ergenecore · Bun
34,847NestJS · Express · Node
40,654NestJS · Express · Bun
44,467NestJS · Fastify · Node
45,638NestJS · Fastify · Bun
Database · read by id
1.74×
faster than NestJS + Express on Node (1.74× on Bun)
1.47× against NestJS + Fastify on Node (1.61× on Bun)
46,422Asena · Ergenecore · Bun · Drizzle
26,636NestJS · Express · Node
26,737NestJS · Express · Bun
31,661NestJS · Fastify · Node
28,914NestJS · Fastify · Bun
Full API endpoint
2.59×
faster than NestJS + Express on Node (1.95× on Bun)
1.81× against NestJS + Fastify on Node (1.57× on Bun)
133,533Asena · Ergenecore · Bun
51,650NestJS · Express · Node
68,408NestJS · Express · Bun
73,682NestJS · Fastify · Node
84,784NestJS · Fastify · Bun

How to read the four numbers on each card

nest new gives you NestJS on Express, running on Node. Nothing is chosen, nothing is tuned, and that is what the headline divides by — the configuration you actually get. The three smaller figures are the escapes, applied one at a time: swap Express for Fastify, move Node to Bun, or do both. None of them closes the gap, and every raw req/s behind them is printed on the card so you can check the arithmetic. On the database card Asena reads through Drizzle, because NestJS reads through TypeORM: ORM against ORM.

Moving to Bun is not a free win everywhere: NestJS Fastify on database · read by id is slower on Bun than on Node, so on those cards the Bun figure is the wider one.

Plaintext ​

A 13-byte text/plain response. Nothing but the HTTP layer and the router.

Asena ErgenecoreBun
211,630 req/s
ElysiaBun
208,209
HonoBun
203,790
Asena HonoBun
191,199
FastifyBun
143,992
FastifyNode
131,886
ExpressBun
130,688
NestJS FastifyBun
128,142
NestJS FastifyNode
124,606
NestJS ExpressBun
110,435
ExpressNode
93,850
NestJS ExpressNode
81,623

JSON serialization ​

A small object built and serialized per request — no caching, no precomputed body.

ElysiaBun
206,806 req/s
Asena ErgenecoreBun
201,879
HonoBun
192,348
Asena HonoBun
190,401
FastifyBun
142,323
FastifyNode
132,118
ExpressBun
126,819
NestJS FastifyBun
123,130
NestJS FastifyNode
122,682
NestJS ExpressBun
105,136
ExpressNode
92,556
NestJS ExpressNode
80,660

Query string parsing ​

Four query parameters read, coerced to numbers, defaults applied, one arithmetic result.

ElysiaBun
184,220 req/s
HonoBun
180,007
Asena ErgenecoreBun
171,829
Asena HonoBun
169,602
FastifyBun
134,648
FastifyNode
125,127
NestJS FastifyNode
112,842
NestJS FastifyBun
111,335
ExpressBun
106,906
NestJS ExpressBun
91,484
ExpressNode
81,347
NestJS ExpressNode
73,723

Path parameters ​

Two path parameters parsed from the route and summed.

ElysiaBun
197,668 req/s
Asena ErgenecoreBun
194,040
HonoBun
186,050
Asena HonoBun
183,418
FastifyBun
140,191
FastifyNode
130,178
ExpressBun
123,533
NestJS FastifyNode
115,655
NestJS FastifyBun
114,483
NestJS ExpressBun
96,057
ExpressNode
90,062
NestJS ExpressNode
75,242

Full API endpoint ​

Path param + query + custom header + a nested JSON body parsed, reshaped and re-serialized. Integer cents only, so no float formatting can diverge.

HonoBun
140,083 req/s
ElysiaBun
139,772
Asena HonoBun
135,480
Asena ErgenecoreBun
133,533
FastifyBun
108,733
FastifyNode
88,129
ExpressBun
86,884
NestJS FastifyBun
84,784
NestJS FastifyNode
73,682
NestJS ExpressBun
68,408
ExpressNode
61,945
NestJS ExpressNode
51,650

Request validation ​

Each framework runs its own validator: Zod for Asena and Hono, TypeBox for Elysia, ajv for Fastify, class-validator for NestJS.

ElysiaBun
141,501 req/s
Asena ErgenecoreBun
135,012
HonoBun
134,329
Asena HonoBun
131,627
FastifyBun
114,420
FastifyNode
95,639
ExpressBun
85,981
ExpressNode
62,903
NestJS FastifyBun
45,638
NestJS FastifyNode
44,467
NestJS ExpressBun
40,654
NestJS ExpressNode
34,847

Database · read by id ​

One indexed SELECT against a 10,000-row table, connection pool of 20.

ElysiaBun
95,881 req/s
HonoBun
94,549
Asena ErgenecoreBun
93,786
Asena HonoBun
92,216
FastifyBun
58,453
FastifyNode
56,240
ExpressBun
51,290
ExpressNode
46,583
NestJS FastifyNode
31,661
NestJS FastifyBun
28,914
NestJS ExpressBun
26,737
NestJS ExpressNode
26,636

Static file · 4 KB ​

Each stack serves the file the way its own documentation tells you to.

Asena ErgenecoreBun
140,542 req/s
ElysiaBun
119,723
Asena HonoBun
89,802
ExpressBun
41,277
NestJS ExpressBun
40,363
FastifyBun
38,789
NestJS FastifyBun
36,765
HonoBun
36,441
NestJS FastifyNode
33,855
FastifyNode
33,053
NestJS ExpressNode
32,053
ExpressNode
31,544

What the static numbers actually measure

The static scenario measures each stack's official static middleware, not the framework, and those middlewares do different amounts of work per request:

  • Elysia (@elysiajs/static) registers every HTML file as its own constant route at startup, so the 4 KB page skips the per-request filesystem lookup entirely.
  • Asena · Ergenecore stats the file on every request but keeps small files' descriptors, MIME type and headers open between requests and reads fresh bytes through them.
  • Asena · Hono adapter ships its own wrapper around hono/serve-static: a synchronous stat, then a Bun.file() response.
  • Hono uses serveStatic from hono/bun: an asynchronous stat plus an existence check, then a Bun.file() response.
  • Express, Fastify and both NestJS stacks stat the file asynchronously and open a new read stream on every request; on Node that goes through the libuv thread pool, on the same core.

On the 256 KB file Elysia and Ergenecore fall back to the per-request path too, and the ranking follows synchronous against asynchronous stat. Read both static charts as "what each framework's recommended static setup costs on one core", not as equal work.

Node vs Bun ​

The four Node-based frameworks were measured twice, running the same compiled dist/main.js on both runtimes. Only the runtime changes, measured on plaintext. All four are faster on Bun — yet none of them reaches the Bun-native stacks, which is the framework cost the runtime cannot remove.

Express
+39%
Node 93,850Bun 130,688
Fastify
+9%
Node 131,886Bun 143,992
NestJS Express
+35%
Node 81,623Bun 110,435
NestJS Fastify
+3%
Node 124,606Bun 128,142

Asena's two adapters ​

Identical application code — the same controllers, services, validators and repositories. Only the adapter import changes.

ScenarioErgenecoreHono adapter
Plaintext211,630191,199
JSON serialization201,879190,401
Full API endpoint133,533135,480
Request validation135,012131,627
Database · read by id93,78692,216
Static file · 4 KB140,54289,802

Ergenecore leads on raw throughput; on the body-heavy API endpoint and the database read the two are level. The static gap is the two adapters' different file-serving strategies (see the warning above), not routing. Pick Ergenecore for speed, the Hono adapter when you want Hono's middleware ecosystem.

What an ORM costs ​

Asena exposes the same three database operations twice: once over raw Bun.sql, once over @asenajs/asena-drizzle. Same tables, same response bytes, the same Bun.sql driver, each path with its own pool of 20 connections. The cost column is everything the ORM path adds: Drizzle building the statement on every call (the read by id also gets a LIMIT 1), mapping rows back to objects, and the repository resolving its connection per access.

OperationRaw Bun.sqlDrizzleCost
read by id93,78646,422−51%
paged list54,51733,060−39%
insert87,53948,246−45%

Memory ​

Resident memory (RSS) of the listening process, sampled once a second by the harness. Lower is better. Every server ran under the same hard cap of 2 GB with swap disabled; no server came anywhere near it and none was ever killed for memory.

Peak under load ​

The highest RSS seen across all of a target's scenarios. For Elysia, Hono and Asena · Ergenecore that is the first scenario after warm-up, before the garbage collector has given back what the warm-up allocated; Asena · Hono adapter peaks on an ORM route only Asena serves; for the Node-based stacks it is the 256 KB static file or the validation route. Asena's figures include its second (Drizzle) connection pool.

ElysiaBun
71 MB
HonoBun
72 MB
Asena ErgenecoreBun
99 MB
Asena HonoBun
101 MB
ExpressBun
148 MB
FastifyBun
160 MB
NestJS ExpressBun
211 MB
ExpressNode
216 MB
NestJS FastifyBun
220 MB
FastifyNode
222 MB
NestJS ExpressNode
257 MB
NestJS FastifyNode
267 MB

Idle, right after startup ​

HonoBun
36 MB
ElysiaBun
37 MB
Asena ErgenecoreBun
52 MB
ExpressBun
52 MB
Asena HonoBun
53 MB
FastifyBun
60 MB
NestJS ExpressBun
83 MB
NestJS FastifyBun
86 MB
ExpressNode
89 MB
FastifyNode
93 MB
NestJS ExpressNode
141 MB
NestJS FastifyNode
141 MB
FrameworkRuntimeReady byIdleAfter warm-upAvg under loadPeak
ElysiaBun153 ms37 MB70 MB63 MB71 MB
HonoBun154 ms36 MB71 MB60 MB72 MB
Asena ErgenecoreBun151 ms52 MB93 MB77 MB99 MB
Asena HonoBun152 ms53 MB93 MB79 MB101 MB
FastifyBun153 ms60 MB155 MB136 MB160 MB
ExpressBun153 ms52 MB141 MB126 MB148 MB
NestJS FastifyBun305 ms86 MB214 MB188 MB220 MB
NestJS ExpressBun304 ms83 MB206 MB185 MB211 MB
FastifyNode154 ms93 MB205 MB145 MB222 MB
ExpressNode154 ms89 MB175 MB147 MB216 MB
NestJS FastifyNode304 ms141 MB201 MB193 MB267 MB
NestJS ExpressNode305 ms141 MB193 MB193 MB257 MB
  • Ready by is wall time from spawning the process to the first successful response, including the runtime's own boot. The harness polls once immediately and then every 150 ms, so the number is only as fine as that step: everything except NestJS answered on the second poll (~150 ms), NestJS on the third (~300 ms).
  • RSS counts the pages the process actually holds in memory, including the runtime's own code. That is why a Bun process starts above 30 MB before the application has done anything.
  • After warm-up follows traffic on every route: JIT-compiled code, connection pools and caches are all resident by then. It is the number to size a container by.

Full results ​

Every measured number, req/s.

FrameworkRuntimePlaintextJSON serializationQuery string parsingPath parametersFull API endpointRequest validationDB read by idStatic 4 KB
ElysiaBun208,209206,806184,220197,668139,772141,50195,881119,723
HonoBun203,790192,348180,007186,050140,083134,32994,54936,441
Asena ErgenecoreBun211,630201,879171,829194,040133,533135,01293,786140,542
Asena HonoBun191,199190,401169,602183,418135,480131,62792,21689,802
FastifyBun143,992142,323134,648140,191108,733114,42058,45338,789
ExpressBun130,688126,819106,906123,53386,88485,98151,29041,277
NestJS FastifyBun128,142123,130111,335114,48384,78445,63828,91436,765
NestJS ExpressBun110,435105,13691,48496,05768,40840,65426,73740,363
FastifyNode131,886132,118125,127130,17888,12995,63956,24033,053
ExpressNode93,85092,55681,34790,06261,94562,90346,58331,544
NestJS FastifyNode124,606122,682112,842115,65573,68244,46731,66133,855
NestJS ExpressNode81,62380,66073,72375,24251,65034,84726,63632,053

Methodology ​

HardwareAMD Ryzen 9 9950X3D 16-Core Processor · 16C/32T · 60 GB RAM · Linux 7.2.11-arch1-1 · CPU governor performance
RuntimesBun 1.4.4 · Node 26.13.0 · PostgreSQL 18.3
Server budget1 CPU, 2 GB RAM per server — pinned to one logical core (no other benchmark work is placed on it or its SMT sibling), inside a cgroup with a hard memory cap and no swap
Orderstrictly sequential — exactly one server runs at a time; nothing else is benchmarked alongside it
Server lifecycleone fresh process per framework, reused for all of its scenarios
Warm-up120s per process before the first measurement, split evenly over every route so each is JIT-warm; discarded
Measurement180s per scenario, back to back, 1 run each
Load generatorwrk, 2 threads, 128 connections, on two physical cores of their own (taskset -c 1,2,17,18 wrk -t2 -c128 -d<N>s --latency --timeout 10s)
DatabasePostgreSQL in a container pinned to five cores of its own, pool size 20 in every app, 10,000 seeded rows, synchronous_commit = off; write tables truncated before every write scenario
Quiet machineunrelated containers stopped for the run; the orchestrator pinned to its own core
Loggingdisabled in every application; no compression, no CORS, no ETag hashing

Versions ​

FrameworkVersionRuntime(s)Database layerValidator
Elysia1.4.30BunBun.sqlTypeBox
Hono4.13.14BunBun.sqlzod
Asena Ergenecore5.0.1BunBun.sql + drizzlezod
Asena Hono5.0.2BunBun.sql + drizzlezod
Fastify5.12.7Node, Bunpgajv (JSON Schema)
Express5.3.0Bun, Nodepgzod
NestJS Fastify11.2.1Node, BunTypeORMclass-validator
NestJS Express11.2.1Bun, NodeTypeORMclass-validator

Byte-level conformance is the gate. Every app must return the exact expected bytes for all eleven contract requests plus the negative cases. For this sweep the check ran on the exact builds that were measured, right after the sweep, and all eight apps passed; the harness now runs it against every server process before its warm-up.

Validation runs on one route only. Adding a schema elsewhere would make some apps measure "parse + validate" and others "parse" while still returning identical bytes.

Every result is checked, not just collected. A run counts only if wrk saw zero non-2xx responses and zero socket errors, the cgroup memory cap was verified in place, and the process was still alive at the end. All 138 runs passed.

The server core was the bottleneck, not the load generator. The harness reads the server core's own counters during every measurement, and it never dropped below 100% busy. Part of that core goes to the kernel's network stack (softirq) rather than the framework — from 13% on the slowest stacks to 33% on the fastest. It is a fixed cost per request, so the faster a framework is, the larger its share; every framework pays it at the same rate. In a spot check, raising wrk from 2 to 8 threads did not change the numbers.

Where these numbers are soft ​

  • The database layer is not uniform. Each stack uses its idiomatic choice — pg for Express and Fastify, Bun.sql for Elysia, Hono and Asena, TypeORM for NestJS. The clean framework-to-framework database signal is the set of rows sharing one layer.
  • Prepared statements differ by driver. Bun.sql prepares and caches per connection; pg and TypeORM issue unnamed statements and re-parse on every call. This favours the four Bun.sql applications on the database reads.
  • The static scenarios rank file-serving strategies, not routers — see the warning under the charts. The 256 KB file in particular follows synchronous against asynchronous stat.
  • Scenarios share a process. Each framework serves all of its scenarios from one process, in the same order for every framework, the way a real service would. Memory a route leaves behind is visible to the routes measured after it.
  • Warm-up was split across routes. The 120s budget was divided evenly over a target's routes: about 11s each for most stacks, 9s for Asena, which also serves the three ORM routes. Bun and Node are warm within seconds, so this is not expected to move results, but it is not identical. The harness now gives every route the same seconds.
  • Frameworks ran in a fixed order (Express, Fastify, NestJS, Elysia, Hono, Asena), one run each. Drift in machine state over the 7.4-hour sweep is not averaged out.
  • Handler code was equivalent, with four small exceptions, all fixed in the apps since: standalone Express read req.query field by field, which re-runs its query parser each time (query and list routes); on the full API route Asena and Elysia built the whole header map to read one header (the Asena Hono adapter also sorts it); the NestJS + Express validation DTO lacked one @IsDefined() the Fastify variant has. Each is worth at most a few percent on its route.
  • No app checks Authorization on the full API route. It is sent, but the scenario measures parsing, arithmetic and reshaping, not authentication.
  • NestJS bundles its own Express and Fastify. Under NestJS they resolve to Express 5.2.1 and Fastify 5.11.3, slightly older than the standalone apps' versions.
  • The load generator shares the machine with the server. The server sits alone on one CPU chiplet with its own L3 cache; wrk and PostgreSQL run on the other chiplet. Memory bandwidth and the I/O die are still shared.
  • One run per scenario. Differences of a few percent are within run-to-run noise; read close rows as a tie. On plaintext the top three are 211,630, 208,209, 203,790 req/s — a tie.

The full contract, the harness, every app and every raw result are in AsenaJs/benchmark.

Released under the MIT License.