xin

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

Loopback · 4 workers — medians of three trials
TransportServerReq/s rangep99 (ms)CPU µs/req
HTTPenvoy124,718–125,8962.6424.21
HTTPnginx266,974–268,3821.098.46
HTTPxin212,547–213,0841.3811.86
TLSenvoy116,181–116,9512.8626.68
TLSnginx239,739–241,2451.2710.14
TLSxin204,354–206,6471.4412.62

Loopback · 1 worker

HTTP

Requests / second · higher is better

HTTPS / TLS

Requests / second · higher is better

Loopback · 1 worker — medians of three trials
TransportServerReq/s rangep99 (ms)CPU µs/req
HTTPenvoy40,159–40,2771.9119.03
HTTPnginx73,195–73,4240.947.68
HTTPxin63,647–64,4861.0810.05
TLSenvoy31,444–37,8592.0320.62
TLSnginx65,381–65,4341.059.23
TLSxin60,442–61,2641.1310.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.