Xisto vs Node: TechEmpower json and plaintext
Node is what a TypeScript service runs on today. Two references: Node's own http module, the floor of any Node framework, and fastify, the fastest of the popular ones.
Xisto's native Server against Node http, at a glance:
- json: 71,666 against 29,258 requests per second at best (2.45× more), with 2.6× less CPU per request and 52.8× less memory (5.5 MB against 290.3 MB).
- plaintext: 649,581 against 51,714 requests per second at best (12.56× more), with 13.1× less CPU per request and 19.5× less memory (42.4 MB against 826.6 MB).
The same round as the TechEmpower page, which has the full setup: the servers 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 reference here is Node v22.22.1 (Ubuntu's package), the TFB's frameworks/JavaScript/nodejs (node:http) and frameworks/JavaScript/fastify, both with node:cluster and one worker per CPU, unmodified except for the port. On the Xisto side, the native
Server with 2 workers. NestJS, on Xisto, Node and Bun, has its own page.
json
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 Node.js http does.
- Xisto (native)
- Node.js http
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 (native)
- Node.js http
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 (native) | 29,615 | 51,415 | 66,449 | 69,712 | 71,666 | 71,553 |
| Node.js http | 22,678 | 28,942 | 29,258 | 29,043 | 28,892 | 27,738 |
| Fastify (Node.js) | 20,061 | 22,241 | 21,420 | 23,017 | 22,628 | 21,756 |
Requests per second at each number of connections.
| server | best req/s | connections there | p50 there | p99 there | CPU ms per 1k requests | peak RSS |
|---|---|---|---|---|---|---|
| Xisto (native) | 71,666 | 256 | 2.4 ms | 66.9 ms | 25.4 | 5.5 MB |
| Node.js http | 29,258 | 64 | 2.1 ms | 6.9 ms | 67.0 | 290.3 MB |
| Fastify (Node.js) | 23,017 | 128 | 5.0 ms | 14.0 ms | 85.6 | 301.6 MB |
p99 at each level:
| server | 16 | 32 | 64 | 128 | 256 | 512 |
|---|---|---|---|---|---|---|
| Xisto (native) | 1.5 ms | 1.7 ms | 4.2 ms | 34.9 ms | 66.9 ms | 104 ms |
| Node.js http | 2.2 ms | 3.3 ms | 6.9 ms | 12.2 ms | 46.2 ms | 740 ms |
| Fastify (Node.js) | 2.4 ms | 4.2 ms | 6.7 ms | 14.0 ms | 130 ms | 1280 ms |
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 Node.js http does.
- Xisto (native)
- Node.js http
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 (native)
- Node.js http
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.
plaintext in numbers
| server | 256 | 1,024 | 4,096 | 16,384 |
|---|---|---|---|---|
| Xisto (native) | 649,581 | 596,731 | 552,728 | 411,863 |
| Node.js http | 51,086 | 50,687 | 51,714 | 35,409 |
| Fastify (Node.js) | 34,576 | 35,116 | 36,534 | 24,701 |
Requests per second at each number of connections (HTTP pipelining 16 deep).
| server | best req/s | connections there | p50 there | p99 there | CPU ms per 1k requests | peak RSS |
|---|---|---|---|---|---|---|
| Xisto (native) | 649,581 | 256 | 3.8 ms | 204 ms | 3.0 | 42.4 MB |
| Node.js http | 51,714 | 4,096 | 238 ms | 1030 ms | 39.3 | 826.6 MB |
| Fastify (Node.js) | 36,534 | 4,096 | 376 ms | 1030 ms | 57.1 | 848.2 MB |
p99 at each level:
| server | 256 | 1,024 | 4,096 | 16,384 |
|---|---|---|---|---|
| Xisto (native) | 204 ms | 191 ms | 754 ms | 4110 ms |
| Node.js http | 3560 ms | 3920 ms | 1030 ms | 6680 ms |
| Fastify (Node.js) | 5760 ms | 3530 ms | 1030 ms | 7130 ms |