Benchmarks
xin, nginx 1.31.6 and Envoy 1.39.1. One machine. One or four workers. HTTP and TLS.
Loopback · 4 workers
HTTP
Requests / second · higher is better
HTTPS / TLS
Requests / second · higher is better
| Transport | Server | Req/s range | p99 (ms) | CPU µs/req |
|---|---|---|---|---|
| HTTP | envoy | 124,718–125,896 | 2.64 | 24.21 |
| HTTP | nginx | 266,974–268,382 | 1.09 | 8.46 |
| HTTP | xin | 212,547–213,084 | 1.38 | 11.86 |
| TLS | envoy | 116,181–116,951 | 2.86 | 26.68 |
| TLS | nginx | 239,739–241,245 | 1.27 | 10.14 |
| TLS | xin | 204,354–206,647 | 1.44 | 12.62 |
Loopback · 1 worker
HTTP
Requests / second · higher is better
HTTPS / TLS
Requests / second · higher is better
| Transport | Server | Req/s range | p99 (ms) | CPU µs/req |
|---|---|---|---|---|
| HTTP | envoy | 40,159–40,277 | 1.91 | 19.03 |
| HTTP | nginx | 73,195–73,424 | 0.94 | 7.68 |
| HTTP | xin | 63,647–64,486 | 1.08 | 10.05 |
| TLS | envoy | 31,444–37,859 | 2.03 | 20.62 |
| TLS | nginx | 65,381–65,434 | 1.05 | 9.23 |
| TLS | xin | 60,442–61,264 | 1.13 | 10.86 |
Test conditions
Apple M1 Ultra, native ARM64 binaries on Linux. HTTP/1.1 keepalive to a plaintext upstream returning ok\n (3 bytes). Access logs off. TLS 1.2, ECDHE-RSA-AES128-GCM-SHA256, same certificate.
Three interleaved trials per cell: 2 seconds warmup, 10 seconds measured with wrk. 64 connections for one worker; 256 for four. Worker and client CPU affinities are fixed. All 36 loopback trials completed without reported socket or non-2xx errors.