aladov3.13.0

Docs/Production

Benchmarks

Alado 3.10.2 load-tested against the popular Node.js HTTP frameworks, re-run on 26 Nov 2026. Every framework runs on Node.js, on Node's own HTTP server (node:http) and answers the same three routes; bare node:http with hand-written routing is the reference baseline.

Results

Median requests per second over 3 rounds, p99 latency in milliseconds in brackets. Higher is better.

Framework GET /json GET /users/:id?name POST /echo (JSON)
0http 71,779 (3) 70,486 (3) 57,050 (4)
node:http (baseline, no framework) 68,528 (3) 62,723 (4) 45,055 (4)
Fastify 54,829 (4) 59,227 (3) 36,527 (5)
Polka 58,966 (4) 45,270 (5) 41,556 (5)
Hono 56,070 (4) 48,797 (4) 32,405 (5)
h3 54,183 (4) 45,577 (4) 33,235 (5)
Alado 3.10.2 51,961 (4) 41,313 (4) 31,061 (6)
Elysia (Node adapter) 51,158 (4) 43,617 (5) 21,029 (8)
NestJS + Fastify adapter 41,606 (5) 41,259 (5) 29,057 (6)
Koa 35,768 (5) 33,827 (6) 22,293 (7)
Restify 29,592 (6) 25,595 (7) 22,608 (7)
Hapi 29,696 (6) 27,815 (6) 18,690 (9)
Feathers (Koa transport) 27,541 (7) 25,255 (7) 19,540 (9)
tinyhttp 25,949 (15) 23,070 (15) 17,990 (20)
Express 12,821 (19) 11,698 (20) 10,120 (23)
NestJS (Express adapter) 9,427 (26) 8,743 (28) 8,254 (30)

Frameworks are ordered by the sum of the three columns.

From 3.9.2 to 3.9.17 the default handler and body timeouts started a timer for every request, which cost up to 20% on these small routes (about 41,000 req/s on GET /json in the same setup). 3.9.18 keeps both timeouts with one coarse timer per server, which leaves a few percent of that cost.

Alado is the only framework in the table that validates the request: path, query and body go through DTOs with @validateProperty, as a real Alado app would. The others return the values unchecked. With 3.9.18, the same three routes without DTOs, values passed through unchecked like the others, were 0 to 4% faster; that comparison was not repeated for 3.10.2.

Polka and 0http have no JSON body parser and no res.json, so their servers read and serialize JSON by hand, as their documentation shows. That, and a baseline written for readability rather than speed, is why 0http comes out ahead of bare node:http.

Routes

Scenario Request Response
GET /json GET /json {"hello":"world"}
GET /users/:id?name GET /users/42?name=bob {"id":"42","name":"bob"}
POST /echo (JSON) POST /echo with a small nested JSON body The body, echoed back

How it was measured

  • autocannon 8.0.0, 100 connections, no pipelining, 10 s per run after a 3 s warm-up.
  • Each server runs in its own process with NODE_ENV=production. The server is pinned to one CPU core and autocannon to the other, so they never compete for a core.
  • Every response is checked against the expected status and body before a run; no run had non-2xx responses, errors or timeouts.
  • The run stopped before its last measurement (0http, POST /echo, round 3); that one value comes from a separate run of 0http alone, right after it, in the same setup.
  • 3 rounds, the server order reversed every other round; the table shows the median.
  • Node.js 22.23.5 on a 2-vCPU cloud VM (Intel Xeon 2.10 GHz), so the numbers are for one server core.

Versions: alado 3.10.2 (servers in alado-loadtest), 0http 5.2.0, polka 0.5.2, h3 2.0.8, fastify 5.12.8, elysia 1.4.30 (@elysiajs/node 1.4.5), @nestjs/core 12.3.2, hono 4.13.16 (@hono/node-server 2.1.6), koa 3.2.1, @feathersjs/koa 5.0.51, restify 12.1.0, @hapi/hapi 21.4.12, @tinyhttp/app 3.0.14, express 5.3.0.

Reading the numbers

Results depend on the machine. On this shared VM the three rounds of one server and route differed by 12% on average and by up to 29%, so frameworks close to each other in the table are effectively tied: Alado, h3 and Elysia are within that margin on the two GET routes, while on the JSON body Alado answers about 48% more requests than Elysia. Compared with the 3.9.18 run, Alado's medians are 3 to 10% higher, within the same margin. Run the same test on your own hardware before drawing conclusions; absolute numbers will differ, the order mostly will not.

Only Node.js is measured: Elysia and Hono run on Bun and Deno too, but there they would not be on node:http, so those runtimes are left out. Not included: AdonisJS, Sails and LoopBack need a full application scaffold rather than three routes, and servers built on uWebSockets.js (HyperExpress, ultimate-express) do not use node:http.