Skip to main content
Version: 0.4

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​

json: best requests per second (higher is better)
020k40k60k80kXisto (native)72kactix-web (Rust)64k

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 (native) requests per second ÷ actix-web (Rust)'s, at each level (above 1× Xisto answers more)
00.511.516 connections1.01×32 connections1.05×64 connections1.12×128 connections1.09×256 connections1.12×512 connections1.15×

The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where actix-web (Rust) does.

json: requests per second by number of connections (higher is better)
  • Xisto (native)
  • actix-web (Rust)
020k40k60k80k163264128256512connections

Every level of the round; the values are in the table below.

json: CPU time per 1,000 requests, in ms (lower is better)
0102030Xisto (native)25.4actix-web (Rust)29.9

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)
051015Xisto (native)5.5actix-web (Rust)14.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 (native)
  • actix-web (Rust)
1 ms10 ms100 ms1 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 (native)29,61551,41566,44969,71271,66671,553
actix-web (Rust)29,20748,96459,57164,16164,10962,197

Requests per second at each number of connections.

serverbest req/sconnections therep50 therep99 thereCPU ms per 1k requestspeak RSS
Xisto (native)71,6662562.4 ms66.9 ms25.45.5 MB
actix-web (Rust)64,1611281.1 ms20.0 ms29.914.4 MB

p99 at each level:

server163264128256512
Xisto (native)1.5 ms1.7 ms4.2 ms34.9 ms66.9 ms104 ms
actix-web (Rust)1.7 ms1.7 ms3.7 ms20.0 ms43.3 ms89.1 ms

plaintext​

plaintext: best requests per second (higher is better)
0200k400k600k800kXisto (native)650kactix-web (Rust)569k

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 (native) requests per second ÷ actix-web (Rust)'s, at each level (above 1× Xisto answers more)
00.511.5256 connections1.14×1,024 connections1.14×4,096 connections1.17×16,384 connections1.26×

The dashed line is 1×, the same requests per second. Accent: the levels where Xisto answers more; grey: where actix-web (Rust) does.

plaintext: requests per second by number of connections (higher is better)
  • Xisto (native)
  • actix-web (Rust)
0200k400k600k800k2561,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)
01234Xisto (native)3.0actix-web (Rust)3.5

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)
0200400600Xisto (native)42.4actix-web (Rust)573.6

The largest resident set size summed over all the server processes, across every level.

plaintext: p99 latency by number of connections (lower is better, log scale)
  • Xisto (native)
  • actix-web (Rust)
100 ms1 s10 s2561,0244,09616,384connections

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​

server2561,0244,09616,384
Xisto (native)649,581596,731552,728411,863
actix-web (Rust)569,047522,104473,669328,127

Requests per second at each number of connections (HTTP pipelining 16 deep).

serverbest req/sconnections therep50 therep99 thereCPU ms per 1k requestspeak RSS
Xisto (native)649,5812563.8 ms204 ms3.042.4 MB
actix-web (Rust)569,0472564.1 ms116 ms3.5573.6 MB

p99 at each level:

server2561,0244,09616,384
Xisto (native)204 ms191 ms754 ms4110 ms
actix-web (Rust)116 ms158 ms286 ms3030 ms