Skip to main content
Version: 0.5

NestJS on Xisto, Node and Bun

The TechEmpower pages ask which runtime serves HTTP fastest, with one plain server per runtime. This page asks the question a team with a NestJS service has: the same Nest app, not one line changed, built with Xisto or run on Node or on Bun: what does each give?

Head to head: vs Node and vs Bun.

Two apps:

  • The TFB app: NestJS with the TechEmpower routes /json and /plaintext (bench/techempower/xisto/nest), under the TechEmpower rules on the AWS VMs.
  • Conduit: the public RealWorld app, with guards, JWT, argon2, Postgres and Redis, on an Apple M4.

The TFB app: json and plaintext​

15 Nov 2026, main f766bf8, the same round and setup as the TechEmpower page: the server on the Xeon E5-2686 v4 (2 vCPUs), wrk 4.2.0 on the Graviton2 over the private network, the TFB's levels and rules, 15 s per level, the median of 3 runs. The app is built with Xisto and run in three modes:

  • 2 processes on one port (XISTO_REUSEPORT=1, one worker each): the kernel spreads the connections, each process has its own singletons and nothing is shared, as Node's cluster or Bun's reusePort;
  • workers with the lock (XISTO_WORKERS=2, the default): one event loop per CPU in one process, the handlers one at a time under a lock, because Nest's singletons are shared;
  • workers without the lock (XISTO_LOCK=0): the handlers in parallel. It crashed under load (below).

On Node and Bun the app runs as the TFB's own NestJS app does: compiled with tsc, one process per CPU.

json​

json: best requests per second (higher is better)
020k40k60kXisto + NestJS (2 processes)54kXisto + NestJS (lock)44kNestJS on Bun27kNestJS on Node.js7.0k

The best of the levels, median of 3 runs at each level; Xisto in the accent colour. Every value is in the tables below.

json: requests per second by number of connections (higher is better)
  • Xisto + NestJS (2 processes)
  • Xisto + NestJS (lock)
  • NestJS on Bun
  • NestJS on Node.js
020k40k60k163264128256512connections

Every level of the round; the values are in the table below.

json: CPU time per 1,000 requests, in ms (lower is better)
0100200300Xisto + NestJS (2 processes)36.1Xisto + NestJS (lock)36.8NestJS on Bun72.1NestJS on Node.js281.7

The server's user + system time over the run at its best level, divided by the requests it answered.

json: peak memory of all the server's processes, in MB (lower is better)
0100200300400Xisto + NestJS (lock)10.7Xisto + NestJS (2 processes)16.2NestJS on Bun233.3NestJS on Node.js354.4

The largest resident set size summed over all the server processes, across every level.

json: p99 latency by number of connections (lower is better, log scale)
  • Xisto + NestJS (2 processes)
  • Xisto + NestJS (lock)
  • NestJS on Bun
  • NestJS on Node.js
1 ms10 ms100 ms1 s10 s163264128256512connections

The 99th percentile of each level's median run, as wrk reports it; each step of the axis is ten times the one below. A level without a value had no p99 in wrk's output.

json in numbers​

server163264128256512
Xisto + NestJS (2 processes)28,05642,58752,81954,04952,43253,117
Xisto + NestJS (lock)27,12537,78343,51444,17043,61142,763
NestJS on Bun21,17126,14926,80727,30627,01326,174
NestJS on Node.js6,9866,9747,0277,0216,7756,712

Requests per second at each number of connections. Xisto + NestJS (no lock) crashed under load.

serverbest req/sconnections therep50 therep99 thereCPU ms per 1k requestspeak RSS
Xisto + NestJS (2 processes)54,0491281.8 ms11.3 ms36.116.2 MB
Xisto + NestJS (lock)44,1701282.5 ms10.4 ms36.810.7 MB
NestJS on Bun27,3061284.4 ms13.0 ms72.1233.3 MB
NestJS on Node.js7,027647.9 ms23.1 ms281.7354.4 MB

p99 at each level:

server163264128256512
Xisto + NestJS (2 processes)1.6 ms1.9 ms5.5 ms11.3 ms18.7 ms31.8 ms
Xisto + NestJS (lock)1.9 ms2.4 ms5.0 ms10.4 ms16.9 ms29.8 ms
NestJS on Bun2.6 ms3.9 ms7.6 ms13.0 ms23.0 ms35.3 ms
NestJS on Node.js9.6 ms14.3 ms23.1 ms75.9 ms1270 ms4980 ms

plaintext​

plaintext: best requests per second (higher is better)
050k100k150k200k250kXisto + NestJS (2 processes)240kXisto + NestJS (lock)116kNestJS on Bun30kNestJS on Node.js11k

The best of the levels, median of 3 runs at each level; Xisto in the accent colour. Every value is in the tables below.

plaintext: requests per second by number of connections (higher is better)
  • Xisto + NestJS (2 processes)
  • Xisto + NestJS (lock)
  • NestJS on Bun
  • NestJS on Node.js
0100k200k300k2561,0244,09616,384connections

Every level of the round; the values are in the table below.

plaintext: CPU time per 1,000 requests, in ms (lower is better)
050100150200Xisto + NestJS (2 processes)8.5Xisto + NestJS (lock)11.9NestJS on Bun67.3NestJS on Node.js181.2

The server's user + system time over the run at its best level, divided by the requests it answered.

plaintext: peak memory of all the server's processes, in MB (lower is better)
05001.0k1.5k2.0k2.5kXisto + NestJS (2 processes)73.8Xisto + NestJS (lock)74.9NestJS on Bun1480.4NestJS on Node.js2270.3

The largest resident set size summed over all the server processes, across every level.

plaintext in numbers​

server2561,0244,09616,384
Xisto + NestJS (2 processes)239,831224,576208,115159,455
Xisto + NestJS (lock)115,557112,929109,77984,875
NestJS on Bun28,18429,62929,23219,171
NestJS on Node.js8,54611,0929,907—

Requests per second at each number of connections (HTTP pipelining 16 deep). Xisto + NestJS (no lock) crashed under load.

serverbest req/sconnections therep50 therep99 thereCPU ms per 1k requestspeak RSS
Xisto + NestJS (2 processes)239,8312569.7 ms30.9 ms8.573.8 MB
Xisto + NestJS (lock)115,55725620.1 ms—11.974.9 MB
NestJS on Bun29,6291,024297 ms1000 ms67.31480.4 MB
NestJS on Node.js11,0921,024454 ms1200 ms181.22270.3 MB

p99 at each level:

server2561,0244,09616,384
Xisto + NestJS (2 processes)30.9 ms92.6 ms402 ms2880 ms
Xisto + NestJS (lock)—192 ms1380 ms3300 ms
NestJS on Bun185 ms1000 ms2940 ms7420 ms
NestJS on Node.js6120 ms1200 ms5400 ms—

What this says​

  • In two processes the app built with Xisto serves 54,049 json requests per second with 16.2 MB of memory: 2.0× Bun's 27,306 (233 MB) and 7.7× Node's 7,027 (354 MB), with half of Bun's CPU per request and an eighth of Node's (36.1 ms per 1,000 requests against 72.1 and 281.7).
  • On plaintext (HTTP pipelining 16 deep) the gap grows: 239,831 requests per second against Bun's 29,629 (8.1×) and Node's 11,092 (21.6×), with 74 MB at the peak against 1.5 GB and 2.3 GB.
  • At 16,384 connections Node answered the first of the three runs (7,944 requests per second, 2,053 requests past wrk's 8 s timeout) and none in the next two: it was still working through the first run's queue. That level has no Node row.
  • With the lock, in one process: 44,170 json and 115,557 plaintext requests per second, with 10.7 MB on json. Still ahead of Bun's cluster on both.
  • Without the lock the workers crash under load: Nest's singletons are shared by the workers and touched without synchronization. The lock is the default for that reason, and the multi-process mode is the one that scales.

Conduit: a real NestJS app​

Conduit, the public RealWorld example built with NestJS (guards, JWT, argon2, Postgres, Redis), built with Xisto and run on Node v26.12.0 and Bun 1.4.4, in one session on an Apple M4, 15 Nov 2026 (bench/results/conduit-mac-2026-11-15.txt).

Conduit: startup, from exec to the first 200, in ms (lower is better)
0100200300Xisto26Bun214Node264

The median of 5 fresh starts, until GET /api/tags answers.

Conduit: memory after the load, in MB (lower is better)
050100150200Xisto11.6Bun130.8Node154.4

Resident memory of the server process after every route's load; at rest in the tooltip.

Requests per second, 20 connections, 30 s per route:

routeXistoNodeBun
current user (guard, JWT, query)8,1346,5287,213
tags17,37315,73115,124
login (argon2)654544
article list, cache warm15,36114,49719,572
article by slug, cache warm23,80334,15338,660
article list, no cache5,9565,4315,237
article by slug, no cache8,5507,9207,508

Xisto answers the most on five of the seven routes; on the two served from the Redis cache Bun is first and Node is ahead of Xisto on the article by slug. Every route, latency, CPU and memory number is on vs Node and vs Bun.

See also​