Xisto vs Rust: TechEmpower json and plaintext
actix-web is the reference to beat: one of the fastest frameworks in the TFB for years, compiled Rust with no garbage collector and no runtime between the handler and the socket. It is the bar Xisto's native server was tuned against (see what changed since the first round).
Xisto's native Server against it, at a glance:
- json: 71,666 against 64,161 requests per second at best (1.12× more), with 1.2× less CPU per request and 2.6× less memory (5.5 MB against 14.4 MB).
- plaintext: 649,581 against 569,047 requests per second at best (1.14× more), with 1.2× less CPU per request and 13.5× less memory (42.4 MB against 573.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 actix-web (Rust 1.99, built with RUSTFLAGS=-C target-cpu=native as the TFB's Dockerfile), the tfb-web binary of the TFB's frameworks/Rust/actix, 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 actix-web (Rust) does.
- Xisto (native)
- actix-web (Rust)
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)
- actix-web (Rust)
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 |
| actix-web (Rust) | 29,207 | 48,964 | 59,571 | 64,161 | 64,109 | 62,197 |
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 |
| actix-web (Rust) | 64,161 | 128 | 1.1 ms | 20.0 ms | 29.9 | 14.4 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 |
| actix-web (Rust) | 1.7 ms | 1.7 ms | 3.7 ms | 20.0 ms | 43.3 ms | 89.1 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 actix-web (Rust) does.
- Xisto (native)
- actix-web (Rust)
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)
- actix-web (Rust)
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 |
| actix-web (Rust) | 569,047 | 522,104 | 473,669 | 328,127 |
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 |
| actix-web (Rust) | 569,047 | 256 | 4.1 ms | 116 ms | 3.5 | 573.6 MB |
p99 at each level:
| server | 256 | 1,024 | 4,096 | 16,384 |
|---|---|---|---|---|
| Xisto (native) | 204 ms | 191 ms | 754 ms | 4110 ms |
| actix-web (Rust) | 116 ms | 158 ms | 286 ms | 3030 ms |