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).
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.
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.
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.
| Xisto | Node | |
|---|---|---|
| startup (to the first 200) | 26 ms | 264 ms |
| RSS at rest | 7.5 MB | 142.5 MB |
| RSS after the load | 11.6 MB | 154.4 MB |
Under load, with the Redis cache warm:
| route | Xisto req/s | Node req/s | Xisto p99 | Node p99 | Xisto CPU per 1k req | Node CPU per 1k req | Xisto RSS | Node RSS |
|---|---|---|---|---|---|---|---|---|
| article list (2 queries) | 15,361 | 14,497 | 2.81 ms | 4.35 ms | 43.9 ms | 51.3 ms | 12.5 MB | 167.4 MB |
| article by slug | 23,803 | 34,153 | 2.03 ms | 1.53 ms | 25.0 ms | 19.8 ms | 11.5 MB | 148.6 MB |
| current user (guard, JWT, query) | 8,134 | 6,528 | 4.27 ms | 4.86 ms | 63.1 ms | 129.1 ms | 11.2 MB | 162.0 MB |
| tags | 17,373 | 15,731 | 2.40 ms | 2.34 ms | 26.7 ms | 34.9 ms | 11.0 MB | 150.2 MB |
| login (argon2) | 65 | 45 | 379.83 ms | 528.74 ms | 127,182.7 ms | 210,270.7 ms | 203.3 MB | 406.1 MB |
Without the cache (Redis stopped; every request reads Postgres):
| route | Xisto req/s | Node req/s | Xisto p99 | Node p99 | Xisto CPU per 1k req | Node CPU per 1k req | Xisto RSS | Node RSS |
|---|---|---|---|---|---|---|---|---|
| article list | 5,956 | 5,431 | 6.10 ms | 6.42 ms | 92.1 ms | 122.9 ms | 11.5 MB | 304.8 MB |
| article by slug | 8,550 | 7,920 | 4.15 ms | 4.25 ms | 32.2 ms | 61.1 ms | 11.6 MB | 154.4 MB |
Single-request latency, cold (cache flushed) / warm, in ms:
| route | Xisto | Node |
|---|---|---|
| article list | 2.09 / 0.65 | 2.68 / 0.61 |
| article by slug | 2.14 / 0.50 | 2.09 / 0.55 |
| current user | 1.71 / 0.72 | 1.81 / 0.96 |
| tags | 1.44 / 0.50 | 1.17 / 0.52 |
| login | 21.83 / 22.75 | 30.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.
The best of the levels, median of 3 runs at each level; Xisto in the accent colour. Every value is in the tables below.
The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where NestJS on Node.js does.
- Xisto + NestJS (2 processes)
- Xisto + NestJS (lock)
- NestJS on Node.js
Every level of the round; the values are in the table below.
The server's user + system time over the run at its best level, divided by the requests it answered.
The largest resident set size summed over all the server processes, across every level.
- Xisto + NestJS (2 processes)
- Xisto + NestJS (lock)
- NestJS on Node.js
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
| server | 16 | 32 | 64 | 128 | 256 | 512 |
|---|---|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 28,056 | 42,587 | 52,819 | 54,049 | 52,432 | 53,117 |
| Xisto + NestJS (lock) | 27,125 | 37,783 | 43,514 | 44,170 | 43,611 | 42,763 |
| NestJS on Node.js | 6,986 | 6,974 | 7,027 | 7,021 | 6,775 | 6,712 |
Requests per second at each number of connections. Xisto + NestJS (no lock) crashed under load.
| server | best req/s | connections there | p50 there | p99 there | CPU ms per 1k requests | peak RSS |
|---|---|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 54,049 | 128 | 1.8 ms | 11.3 ms | 36.1 | 16.2 MB |
| Xisto + NestJS (lock) | 44,170 | 128 | 2.5 ms | 10.4 ms | 36.8 | 10.7 MB |
| NestJS on Node.js | 7,027 | 64 | 7.9 ms | 23.1 ms | 281.7 | 354.4 MB |
p99 at each level:
| server | 16 | 32 | 64 | 128 | 256 | 512 |
|---|---|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 1.6 ms | 1.9 ms | 5.5 ms | 11.3 ms | 18.7 ms | 31.8 ms |
| Xisto + NestJS (lock) | 1.9 ms | 2.4 ms | 5.0 ms | 10.4 ms | 16.9 ms | 29.8 ms |
| NestJS on Node.js | 9.6 ms | 14.3 ms | 23.1 ms | 75.9 ms | 1270 ms | 4980 ms |
The TFB app: plaintext
The best of the levels, median of 3 runs at each level; Xisto in the accent colour. Every value is in the tables below.
The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where NestJS on Node.js does.
- Xisto + NestJS (2 processes)
- Xisto + NestJS (lock)
- NestJS on Node.js
Every level of the round; the values are in the table below.
The server's user + system time over the run at its best level, divided by the requests it answered.
The largest resident set size summed over all the server processes, across every level.
plaintext in numbers
| server | 256 | 1,024 | 4,096 | 16,384 |
|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 239,831 | 224,576 | 208,115 | 159,455 |
| Xisto + NestJS (lock) | 115,557 | 112,929 | 109,779 | 84,875 |
| NestJS on Node.js | 8,546 | 11,092 | 9,907 | — |
Requests per second at each number of connections (HTTP pipelining 16 deep). Xisto + NestJS (no lock) crashed under load.
| server | best req/s | connections there | p50 there | p99 there | CPU ms per 1k requests | peak RSS |
|---|---|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 239,831 | 256 | 9.7 ms | 30.9 ms | 8.5 | 73.8 MB |
| Xisto + NestJS (lock) | 115,557 | 256 | 20.1 ms | — | 11.9 | 74.9 MB |
| NestJS on Node.js | 11,092 | 1,024 | 454 ms | 1200 ms | 181.2 | 2270.3 MB |
p99 at each level:
| server | 256 | 1,024 | 4,096 | 16,384 |
|---|---|---|---|---|
| Xisto + NestJS (2 processes) | 30.9 ms | 92.6 ms | 402 ms | 2880 ms |
| Xisto + NestJS (lock) | — | 192 ms | 1380 ms | 3300 ms |
| NestJS on Node.js | 6120 ms | 1200 ms | 5400 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
- NestJS and vs Bun
- TechEmpower vs Node: the plain
node:httpserver and fastify