Skip to main content
Version: 0.4

HTTP

Unless a section says otherwise, the HTTP results are from an Apple M4 (10 cores, 4 of them performance cores, macOS 15.5), measured on 15 Nov 2026 with Xisto 0.4.2 (main 6138390), the load generator oha 1.16.0 on the same machine, Node v26.12.0, Bun 1.4.4, Rust 1.99.1 with axum 0.8.9 on tokio 1.54.1, and Go 1.27.2 with the standard library's net/http. Each server is one process with one event loop unless a table says otherwise: Rust on tokio's current_thread runtime, Go with GOMAXPROCS=1. The Rust and Go servers (bench/http/rust, bench/http/go) answer every measured route byte for byte as the Xisto server does (status, content type, body), checked with bench/http/probe.sh. NestJS, the Conduit app included, has its own page. The first Linux results are in Node's http module on Linux.

Hello server​

64 keep-alive connections, 10 s per route. RSS is sampled right after the load; startup is the time from spawn to the first 200 on /ping. Source: bench/results/2026-11-15-Apple-M4-http.csv.

GET /ping: requests per second (higher is better)
0100k200k300kXisto251kBun200kRust (axum)200kGo (net/http)151kNode144k

One process, one event loop each (Rust: tokio current_thread; Go: GOMAXPROCS=1); every value is in the table below.

RSS after the load, in MB (lower is better)
050100150Rust (axum)6.9Xisto7.4Go (net/http)13.7Bun34.9Node111.5

Resident memory sampled right after the /ping load.

serverroutereq/sp50p99RSS after loadstartupexecutable
Xisto/ping251,0580.218 ms0.441 ms7.36 MB1 ms130,048 B
Xisto/hello?name=isa248,6710.219 ms0.448 ms8.25 MB
Bun/ping200,4880.269 ms0.582 ms34.88 MB2 ms88,660,864 B
Bun/hello?name=isa191,3600.282 ms0.614 ms45.66 MB
Rust (axum)/ping200,3530.314 ms0.403 ms6.86 MB1 ms1,061,176 B
Rust (axum)/hello?name=isa194,1620.325 ms0.407 ms7.91 MB
Go (net/http)/ping150,7510.421 ms0.724 ms13.66 MB1 ms5,648,194 B
Go (net/http)/hello?name=isa143,9550.441 ms0.774 ms13.67 MB
Node/ping143,8850.380 ms0.825 ms111.45 MB14 ms61,220,224 B
Node/hello?name=isa133,7010.413 ms0.895 ms112.44 MB

Xisto answers 25% more requests than Bun and Rust, which tie, and 67% more than Go; Rust has the lowest p99 and the least memory, Xisto close behind. The same client program (bench/http/client.ts and its ports, 20,000 sequential requests against the Xisto server) takes 0.55 s and peaks at 1.94 MB on Xisto, 0.79 s and 13.02 MB on Go, 1.01 s and 36.08 MB on Bun, 1.31 s and 2.94 MB on Rust (reqwest), 1.70 s and 218.09 MB on Node.

Todo API​

A JSON API seeded with 50 todos; 64 connections, 10 s per route. list serializes all 50 items, read returns one, update parses a JSON body. Source: bench/results/2026-11-15-Apple-M4-todo.csv.

Todo API, list (50 items as JSON): requests per second (higher is better)
050k100k150k200kXisto178kBun156kRust (axum)152kNode104kGo (net/http)80k

One process, one event loop each; every value is in the table below.

routeXistoBunRust (axum)Go (net/http)Node
list178,355 req/s, p99 0.680 ms, 8.38 MB155,674 req/s, p99 0.825 ms, 34.19 MB151,901 req/s, p99 0.512 ms, 6.77 MB79,875 req/s, p99 1.364 ms, 14.09 MB103,642 req/s, p99 1.220 ms, 110.34 MB
read227,399 req/s, p99 0.502 ms, 8.81 MB180,935 req/s, p99 0.659 ms, 41.45 MB176,708 req/s, p99 0.459 ms, 7.86 MB126,378 req/s, p99 0.909 ms, 14.12 MB121,582 req/s, p99 0.997 ms, 111.11 MB
update215,122 req/s, p99 0.541 ms, 9.64 MB159,871 req/s, p99 0.763 ms, 45.50 MB163,697 req/s, p99 0.712 ms, 8.41 MB110,308 req/s, p99 1.053 ms, 14.14 MB101,882 req/s, p99 1.227 ms, 129.61 MB

Xisto is ahead on all three routes: 15% to 35% over Rust and Bun, 1.7 to 2.2 times Go and Node. Rust has the lowest p99 on list and read and the least memory (6.8 to 8.4 MB, Xisto 8.4 to 9.6 MB). Go's encoding/json makes list its slowest route: 79,875 req/s, half of its read.

Node's http module on Linux​

node:http came to xisto with the Node core modules (main dedc7b2). The same /ping server written with Node's http.createServer (bench/http/server.node.ts, unchanged) built with xisto, beside xisto's own Server API, on the Xeon E5-2686 v4 (2 vCPUs, Ubuntu). wrk 4.1.0, 1 thread, 64 connections, 10 s, on the same machine, median of 3 interleaved rounds, one event loop. Source: bench/results/http-2026-11-14/xeon-ab-node-compat.txt.

server (built with xisto)routereq/sRSS after load
xisto Server/ping102,4113.1 MB
xisto Server (Todo API)/todos100,5213.2 MB
Node's http.createServer/ping50,23112.0 MB

Node's API costs half the throughput of xisto's own on this machine: each request builds an IncomingMessage stream and a ServerResponse with their events, as Node does. The same run checked that the Node modules did not slow the native server: main before the merge served 103,598 and 100,680 req/s.

Threads​

256 connections, 10 s per route, the load generator on the same machine. XISTO_WORKERS=N runs N event loops on one port; Node runs a cluster, Bun reusePort, Rust tokio's multi-thread runtime with N workers, Go GOMAXPROCS=N. Source: bench/results/2026-11-15-Apple-M4-threads.csv.

/ping, best of 1 to 8 workers: requests per second (higher is better)
050k100k150k200k250kXisto213kRust (axum)193kGo (net/http)178kNode175kBun171k

Each server at its best number of workers or processes (table below); the load generator shares the M4.

serverworkers/ping req/sp99CPU s per 100k requestsRSS
Xisto1212,5992.436 ms0.46913.9 MB
Xisto2205,4982.507 ms0.93712.1 MB
Xisto4201,2483.227 ms1.36811.0 MB
Xisto8198,1112.287 ms1.57111.4 MB
Xisto (lock)4198,7813.554 ms1.47711.5 MB
Node1114,7044.365 ms0.889127.8 MB
Node (cluster)4175,3443.496 ms2.029507.3 MB
Bun1166,2933.060 ms0.60635.1 MB
Rust (axum, tokio)1167,8051.741 ms0.59316.7 MB
Go (net/http)1122,7802.988 ms0.81316.8 MB
Rust (axum, tokio)2191,5322.335 ms1.01214.9 MB
Go (net/http)2159,4462.390 ms1.23617.7 MB
Rust (axum, tokio)4191,5112.131 ms1.74415.7 MB
Go (net/http)4175,5892.941 ms2.04620.3 MB
Rust (axum, tokio)8193,4762.106 ms2.04617.8 MB
Go (net/http)8178,4876.220 ms2.63124.8 MB
Bun (reusePort)4171,0463.018 ms0.59271.5 MB

On macOS more workers add CPU per request without adding throughput to Xisto: the kernel does not spread connections between sockets on one port (SO_REUSEPORT), so the workers share one, and the load generator competes for the same cores. Rust and Go spread work across threads inside one process and gain the most from 1 to 2 workers (Rust 168k → 192k, Go 123k → 159k), little after; one Xisto event loop still answers more than either at any count. On Linux each Xisto worker has its own socket and two workers serve more than one (see TechEmpower). Threads also pay off for CPU-bound work (see Benchmarks Game).

The Todo API's list with 4 workers, where the handlers share the list:

serverworkers/todos req/sp99CPU s per 100k requests
Xisto1142,1303.491 ms0.703
Xisto (lock)4111,2495.019 ms1.809
Xisto (reads without the lock)4185,3153.486 ms1.794
Rust (RwLock)1131,0602.216 ms0.762
Go (RWMutex)171,4064.619 ms1.402
Rust (RwLock)4173,3012.681 ms1.979
Go (RWMutex)4129,6895.192 ms2.875

The Rust and Go servers guard the list with a reader-writer lock (RwLock, sync.RWMutex), so reads run in parallel: the fair comparison is Xisto's "reads without the lock" row. (The round of 14 Nov had a script error: its todo-xisto,1 row was 4 workers with the lock; this one runs each target with its own settings.)

Resilience​

The Todo API under ramp-up, overload, an error storm, idle connections, a soak and recovery; one event loop each. Source: bench/results/2026-11-15-Apple-M4-resilience.csv (also Xisto with 4 workers).

Resilience, 4,096 connections for 10 s: requests per second (higher is better)
050k100k150k200k250kXisto242kBun149kRust (axum)142kNode111kGo (net/http)101k

One event loop each; the phase every server finds hardest.

phaseXisto req/sBun req/sRust (axum) req/sGo (net/http) req/sNode req/sp99 (Xisto / Rust)RSS (Xisto / Rust / Go / Bun / Node)connection errors (Xisto / Bun / Rust / Go / Node)
64 connections244,355160,117165,853120,741120,6800.465 / 0.472 ms7.8 / 7.0 / 14.2 / 39.9 / 106.0 MB0 / 0 / 0 / 0 / 0
1,024 connections252,017150,173155,346108,502118,5614.642 / 7.616 ms16.3 / 55.2 / 40.4 / 40.6 / 129.3 MB0 / 0 / 0 / 0 / 1
4,096 connections234,806145,010141,730100,868118,79410.430 / 22.333 ms17.5 / 67.4 / 74.9 / 41.0 / 166.3 MB820 / 521 / 506 / 800 / 1445
overload, 4,096 for 10 s241,789149,325141,503100,787111,21717.526 / 30.954 ms19.0 / 71.5 / 131.8 / 41.6 / 207.1 MB697 / 1825 / 370 / 1296 / 2962
invalid JSON storm (400 expected)236,588129,678150,15494,61783,9152.084 / 1.893 ms21.1 / 71.6 / 132.0 / 45.8 / 187.5 MB0 / 0 / 0 / 0 / 0
1,000 idle + 64 active235,542167,894171,272109,669116,9920.482 / 0.479 ms30.6 / 71.6 / 132.1 / 46.1 / 185.5 MB0 / 0 / 0 / 0 / 0
60 s soak173,256139,262134,86070,05290,7470.698 / 0.557 ms17.4 / 55.7 / 132.1 / 27.9 / 186.5 MB0 / 0 / 0 / 0 / 0
recovery, 64 connections222,776159,988162,288113,717108,5070.511 / 0.487 ms17.4 / 55.8 / 132.1 / 33.5 / 186.5 MB0 / 0 / 0 / 0 / 0

Every server answered 200 after every phase. Xisto answers the most requests in every phase, 24% to 62% more than the next, with the least memory from 1,024 connections up; Rust's p99 is the lowest, or tied, in the light phases; under 4,096 connections Xisto's is half of Rust's (10.4 against 22.3 ms). After the soak Xisto held 17.4 MB, against 55.7 MB for Rust and 132 MB for Go; a change in testing (branch rss-trim) gives the allocator's free pages back once the connections are gone.

Slow dependencies​

64 connections, a fake database answering after a fixed delay; one event loop. one makes one call per request, three makes three in sequence. Source: bench/results/2026-11-15-Apple-M4-deps.csv.

Waiting on a 100 ms dependency: CPU seconds per 100k requests (lower is better)
0510152025Xisto4.1Rust6.8Bun10.1Go10.3Node24.3

Every server answers the same ~620 req/s (64 connections × 100 ms); the CPU is what waiting costs.

routedelayXisto req/sBun req/sRust req/sGo req/sNode req/sXisto CPU per 100kBun CPU per 100kRust CPU per 100kGo CPU per 100kNode CPU per 100k
one1 ms51,46248,14154,05449,37526,5241.033 s1.850 s1.302 s1.859 s5.206 s
one5 ms10,4319,66110,36210,6828,8573.318 s6.740 s3.774 s4.269 s7.352 s
one100 ms6206206206206084.069 s10.091 s6.836 s10.254 s24.261 s
one5,000 ms12.812.812.812.812.8<0.01 s¹15.625 s10.417 s10.417 s67.708 s
three100 ms2112112112112118.789 s23.438 s15.137 s21.973 s64.453 s

¹ 64 requests in the whole run at 5 s each: below the timer's resolution.

At 100 ms per call, 64 connections give at most 640 req/s: every server is at the ceiling, and waiting costs Xisto 60% of Rust's CPU, 40% of Bun's and Go's, a sixth of Node's. At 1 ms Rust serves 5% more requests than Xisto, which uses a fifth less CPU; at 5 ms Go serves 2% more.

See also​