Skip to main content
Version: Next (unreleased)

NestJS: Xisto vs Node

The same NestJS app, not one line changed, built with Xisto or run on Node. On Node it runs as the TFB's own Nest app does: compiled with tsc, one process per CPU with node:cluster. On Xisto, in two processes on one port (each with its own singletons, as the cluster) and in one process with workers and the handler lock. The setup and both apps are described on NestJS.

The app built with Xisto in two processes against NestJS on Node, at a glance:

  • json: 54,049 against 7,027 requests per second at best (7.69× more), with 7.8× less CPU per request and 21.9× less memory (16.2 MB against 354.4 MB).
  • plaintext: 239,831 against 11,092 requests per second at best (21.62× more), with 21.3× less CPU per request and 30.8× less memory (73.8 MB against 2270.3 MB).

Conduit: a real NestJS app​

Conduit is the public RealWorld example built with NestJS: controllers, guards, JWT, argon2, a Postgres database and a Redis cache. The same source, not one line changed, built with Xisto (main c684667) and run on Node v26.12.0 (after npm run build), on an Apple M4 (10 cores), 15 Nov 2026; Postgres 16 and Redis 7 in local containers. 20 connections, 30 s per route, startup the median of 5 fresh starts, cold latency the median of 10; every request of every run answered correctly. Source: bench/results/conduit-mac-2026-11-15.txt (Xisto, Node and Bun in one session).

Conduit: Xisto's requests per second ÷ Node's, per route (above 1× Xisto answers more)
00.511.5current user (guard, JWT, query)1.25×login (argon2)1.44×tags1.10×article list (2 queries)1.06×article by slug0.70×article list, no cache1.10×article by slug, no cache1.08×

20 connections, 30 s per route; the first five with the Redis cache warm, the last two with Redis stopped. The dashed line is 1×; grey: the route where Node answers more. Every value is in the tables below.

Conduit: CPU time per 1,000 requests, in ms, with the cache warm (lower is better)
050100150current user · Xisto63.1current user · Node129.1tags · Xisto26.7tags · Node34.9article list · Xisto43.9article list · Node51.3article by slug · Xisto25.0article by slug · Node19.8

The server's user + system time over the run divided by the requests it answered; login (argon2: 127 s against 210 s per 1,000) is in the table.

Conduit: memory at rest and after the load, in MB (lower is better)
050100150200at rest · Xisto7.5at rest · Node142.5after the load · Xisto11.6after the load · Node154.4

Resident memory of the server process; startup to the first 200: 26 ms with Xisto, 264 ms with Node.

Node is ahead on the article by slug with the cache warm (34,153 against 23,803 requests per second: one Redis read and a JSON answer), with less CPU per request there (19.8 against 25.0 ms per 1,000). Xisto answers more on every other route, with and without the cache, uses less CPU on all of them (half of Node's on the current user and on the article by slug without the cache), starts 10× faster and holds 11.6 MB after the load against 154.4 MB. Against the round of 14 Nov, Xisto's startup went from 20 to 26 ms and its current-user route from 46 to 63 ms of CPU per 1,000 requests (Xisto 0.4.1 then, main now); Node's routes moved between −9% and +14%; the Postgres and Redis containers were restarted in between.

XistoNode
startup (to the first 200)26 ms264 ms
RSS at rest7.5 MB142.5 MB
RSS after the load11.6 MB154.4 MB

Under load, with the Redis cache warm:

routeXisto req/sNode req/sXisto p99Node p99Xisto CPU per 1k reqNode CPU per 1k reqXisto RSSNode RSS
article list (2 queries)15,36114,4972.81 ms4.35 ms43.9 ms51.3 ms12.5 MB167.4 MB
article by slug23,80334,1532.03 ms1.53 ms25.0 ms19.8 ms11.5 MB148.6 MB
current user (guard, JWT, query)8,1346,5284.27 ms4.86 ms63.1 ms129.1 ms11.2 MB162.0 MB
tags17,37315,7312.40 ms2.34 ms26.7 ms34.9 ms11.0 MB150.2 MB
login (argon2)6545379.83 ms528.74 ms127,182.7 ms210,270.7 ms203.3 MB406.1 MB

Without the cache (Redis stopped; every request reads Postgres):

routeXisto req/sNode req/sXisto p99Node p99Xisto CPU per 1k reqNode CPU per 1k reqXisto RSSNode RSS
article list5,9565,4316.10 ms6.42 ms92.1 ms122.9 ms11.5 MB304.8 MB
article by slug8,5507,9204.15 ms4.25 ms32.2 ms61.1 ms11.6 MB154.4 MB

Single-request latency, cold (cache flushed) / warm, in ms:

routeXistoNode
article list2.09 / 0.652.68 / 0.61
article by slug2.14 / 0.502.09 / 0.55
current user1.71 / 0.721.81 / 0.96
tags1.44 / 0.501.17 / 0.52
login21.83 / 22.7530.87 / 29.82

The TFB app: json​

15 Nov 2026 round (main f766bf8): the server on the Xeon E5-2686 v4 (2 vCPUs), wrk 4.2.0 on the Graviton2, the TFB's levels and rules, 15 s per level, the median of 3 runs.

json: best requests per second (higher is better)
020k40k60kXisto + NestJS (2 processes)54kXisto + NestJS (lock)44kNestJS 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: Xisto + NestJS (2 processes) requests per second ÷ NestJS on Node.js's, at each level (above 1× Xisto answers more)
0246816 connections4.02×32 connections6.11×64 connections7.52×128 connections7.70×256 connections7.74×512 connections7.91×

The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where NestJS on Node.js does.

json: requests per second by number of connections (higher is better)
  • Xisto + NestJS (2 processes)
  • Xisto + NestJS (lock)
  • 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 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 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 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 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 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 Node.js9.6 ms14.3 ms23.1 ms75.9 ms1270 ms4980 ms

The TFB app: plaintext​

plaintext: best requests per second (higher is better)
050k100k150k200k250kXisto + NestJS (2 processes)240kXisto + NestJS (lock)116kNestJS 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: Xisto + NestJS (2 processes) requests per second ÷ NestJS on Node.js's, at each level (above 1× Xisto answers more)
0102030256 connections28.06×1,024 connections20.25×4,096 connections21.01×

The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where NestJS on Node.js does.

plaintext: requests per second by number of connections (higher is better)
  • Xisto + NestJS (2 processes)
  • Xisto + NestJS (lock)
  • 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 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 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 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 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 Node.js6120 ms1200 ms5400 ms—

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, 2.3 GB) and none in the next two, still working through the first run's queue: that level has no Node value.

See also​