Skip to content

Own Infrastructure

All results on this page were executed on dedicated bare-metal Linux servers (no hypervisor, no shared vCPUs) with full hardware specs, compiler flags, and reproduction commands documented alongside every table.

These measurements are self-hosted bare-metal benchmarks. For independent external leaderboards run by third-party maintainers, see Third-Party Benchmarks.

Bare-Metal Drop-In A/B: naati v0.1.1 vs NGINX 1.30.8

Test Environment

ComponentSpecification
Provider / PlanVultr Bare Metal vbm-4c-32gb (dedicated physical host)
CPUIntel Xeon E3-1270 v6 @ 3.80 GHz (4 physical cores / 8 threads, turbo up to 4.20 GHz)
RAM32 GiB
OS / KernelUbuntu 24.04 LTS, Linux 6.8.0-151-generic (x86-64)
TLS LibraryOpenSSL 3.0.13 (shared system library for both servers)
CompilersGCC 13.3.0 (Track 1) · Clang 18.1.3 + lld (Tracks 2 & 3)
Binariesnaati v0.1.1 (41bbdf7) vs NGINX 1.30.8 built from tools/modules.conf (identical module set)
Methodology5 interleaved rounds (A/B/A/B) × 6 s per workload (gRPC: 5 × 30,000 unary calls); medians reported; server and load generator pinned to separate physical cores (CPU 0 vs CPU 1 for 1-worker tracks; CPUs 0–1 vs 2–3 for 2-worker track)

Track 2: Matched Clang -O3 -march=native -flto=thin (Single Core)

Both NGINX 1.30.8 (--with-cc=clang --with-cc-opt='-O3 -march=native -flto=thin -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIE' --with-ld-opt='-flto=thin -fuse-ld=lld -pie') and naati v0.1.1 (make release) compiled with Clang 18.1.3 + ThinLTO + -O3 -march=native and binary hardening. Server pinned to physical core 0, load generator (wrk / h2load / ghz) pinned to physical core 1.

WorkloadNGINX 1.30.8 (req/s)naati v0.1.1 (req/s)SpeedupServer CPU/req (NGINX → naati)Notes
Static 1 KB (realistic, access_log on)42,230131,5333.11×23.7 µs → 7.6 µsDefault realistic config
Static 1 KB (tuned, access_log off)54,173131,1402.42×18.2 µs → 7.6 µsopen_file_cache enabled
Many-URI static (1,000 files)43,38483,6411.93×23.1 µs → 12.0 µsMulti-URI routing & file cache
HTTP/1.1 Pipelined (depth 16)19,041560,49529.44×24.8 µs → 1.8 µsBatched io_uring pipeline writes
HTTP/2 Static (h2c, h2load)34,247353,91510.33×29.2 µs → 2.8 µsMultiplexed HTTP/2 fast path
TLS 1.3 HTTP/2 (h2load)36,244283,5927.82×27.5 µs → 3.5 µsPure-Goose TLS 1.3 framing over libcrypto AEAD
TLS 1.3 HTTP/1.1 Keepalive33,22287,6642.64×30.1 µs → 11.4 µsSame OpenSSL 3.0.13 system library
HTTP Cache HIT (1 KB, proxy_cache)39,54187,1182.20×25.2 µs → 11.5 µsLock-free shared-zone cache path
HTTP Cache HIT (100 KB, proxy_cache)28,40129,0721.02×30.7 µs → 27.2 µsLoopback bandwidth-bound (~2.9 GB/s)
gRPC Unary Proxy (h2c)13,29919,6731.48×75.0 µs → 46.0 µs30,000 unary calls × 5 rounds
gRPC Unary Proxy (TLS 1.3)12,07917,3421.44×81.7 µs → 51.3 µs30,000 unary calls × 5 rounds
Reverse Proxy (proxy_pass, no keepalive)18,95119,6831.04×52.6 µs → 50.8 µsUpstream TCP connect-bound
Reverse Proxy (proxy_pass + keepalive)45,56745,7971.01×21.9 µs → 21.8 µsTie (loopback + upstream ceiling)
Static Connection: close22,33122,2991.00×36.5 µs → 24.9 µsTie on RPS (TCP teardown ceiling); 32% less server CPU
TLS 1.3 Handshake (resumed)2,8012,8291.01×356.0 µs → 352.3 µsTie (OpenSSL 3.0.13 handshake crypto)
TLS 1.3 Handshake (full)1,6191,6100.99×391.1 µs → 405.9 µsTie (OpenSSL 3.0.13 ECDSA/ECDHE crypto)
HTTP/2 Reverse Proxy (h2proxy)42,85436,4390.85×23.4 µs → 26.0 µsNGINX leads (+18% faster on H2→H1 proxy)

Track 3: Max-Tuned NGINX Config + Tail Latency & Memory (1 & 2 Workers)

Both Clang -O3 -march=native -flto=thin binaries running the exact same max-tuned nginx.conf: access_log off, open_file_cache max=1000 inactive=60s, open_file_cache_valid 300s, sendfile on, tcp_nopush on, tcp_nodelay on, reuseport, multi_accept on, timer_resolution 1s, keepalive_requests 100000. Measured with wrk --latency (5 interleaved rounds × 6 s, physical cores 0 vs 1 for 1w; 0–1 vs 2–3 for 2w) and worker RSS summed via /proc/<pid>/status.

WorkloadNGINX 1.30.8 RPSnaati v0.1.1 RPSSpeedupp50 (NGINX → naati)p99 (NGINX → naati)RSS (NGINX → naati)
1 worker · Static 1 KB80,597128,4411.59×1.23 ms → 771 µs1.29 ms → 812 µs (−37%)30.8 MiB → 36.1 MiB
2 workers · Static 1 KB162,056257,3541.59×629 µs → 365 µs657 µs → 405 µs (−38%)61.3 MiB → 72.0 MiB
2 workers · Static 64 KB76,86875,8730.99×591 µs → 656 µs37.58 ms → 1.32 ms (28.5× lower)61.3 MiB → 71.9 MiB
2 workers · return 200 "hello"263,038263,0691.00×178 µs → 180 µs376 µs → 375 µs61.4 MiB → 50.4 MiB (−18%)
2 workers · Pipelined 16×38,4081,088,37128.34×22.77 ms → 1.12 ms42.80 ms → —*61.9 MiB → 69.8 MiB

*wrk --latency reports 0.00us at p99 for Lua 16× pipelined scripts above 1M req/s due to wrk’s pipeline timestamping behavior; median latency (p50) was 1.12 ms vs 22.77 ms.

Key observations from Track 3:

  • 2w-hello is client-saturated on a 4-core host (wrk on cores 2–3 caps at ~263k req/s against both servers), while naati uses 18% less RSS (50.4 MiB vs 61.4 MiB).
  • 2w-static64k is bandwidth-saturated (~4.9 GB/s loopback), yet naati’s io_uring path eliminates the sendfile tail spikes seen in NGINX (1.32 ms vs 37.58 ms p99).
  • 1-worker → 2-worker scaling is linear for both servers (1.59× advantage holds identically at 1w and 2w).

Track 1: Matched GCC 13.3.0 -O2 (Default Hardened Builds)

Reference NGINX 1.30.8 (tools/build-nginx-min.sh, GCC 13.3.0 -O2) vs default make nginx (naati v0.1.1, GCC 13.3.0 -O2), 5 interleaved rounds × 6 s, physical core 0 vs 1.

WorkloadNGINX 1.30.8 (req/s)naati v0.1.1 (req/s)Speedup
Static 1 KB (realistic, access_log on)40,933120,6002.95×
Static 1 KB (tuned, access_log off)52,516116,9702.23×
Many-URI static (1,000 files)41,56377,6141.87×
HTTP/1.1 Pipelined (depth 16)19,048496,97726.09×
HTTP/2 Static (h2c)34,246328,1709.58×
TLS 1.3 HTTP/2 (h2load)35,943292,2628.13×
TLS 1.3 HTTP/1.1 Keepalive32,91492,7272.82×
HTTP Cache HIT (1 KB)37,81476,0142.01×
HTTP Cache HIT (100 KB)27,49128,9721.05×
gRPC Unary Proxy (h2c)13,13817,5551.34×
gRPC Unary Proxy (TLS 1.3)12,10617,3411.43×
Reverse Proxy (proxy_pass, no keepalive)18,85719,2761.02×
Reverse Proxy (proxy_pass + keepalive)46,44245,0740.97×
Static Connection: close22,28122,3321.00×
TLS 1.3 Handshake (resumed / full)2,801 / 1,6192,817 / 1,6101.01× / 0.99×
HTTP/2 Reverse Proxy (h2proxy)42,98834,4050.80×

Reproducing the Bare-Metal A/B Suite

Every script used in Tracks 1 and 2 ships in the repository under bench/:

# 1. Build reference NGINX 1.30.8 (matching module set), naati, and wrk
tools/build-nginx.sh
tools/build-nginx-min.sh
tools/build-wrk.sh
make nginx          # GCC -O2 (Track 1)
make release        # Clang/GCC -O3 -march=native -flto (Track 2)

# 2. Initialize fixtures under build/bench/ (run once)
bench/perf/setup.sh

# 3. Run interleaved A/B rounds (5 rounds x 6s; pin server/client with SRV_CPU/CLI_CPU)
bench/perf/abn.sh 5 6 refmin build/sbin/nginx
bench/tls.sh 5 6 refmin build/sbin/nginx
bench/grpc.sh 5 30000 refmin build/sbin/nginx

Self-Hosted HttpArena Infrastructure Harness Run

We ran HttpArena’s exact open-source benchmark driver (scripts/benchmark.sh) and load generators (gcannon, wrk, h2load, h2load-h3) head-to-head against the Top 3 entries on HttpArena’s official Infrastructure leaderboard — okena (#1, x86-64 Assembly), agensio (#2, C++), and nginx (#3, C, NGINX 1.31.4 -O3 -march=native) — alongside both naati (exact PR #1906 build) and naati-tuned (v0.1.1 Clang two-stage PGO) on the same dedicated bare-metal server.

Test Environment

ComponentSpecification
Provider / PlanVultr Bare Metal vbm-6c-32gb (dedicated physical host, Atlanta)
CPUIntel Xeon E-2286G @ 4.00 GHz (6 physical cores / 12 threads, turbo 4.90 GHz)
RAM32 GiB
OS / KernelUbuntu 24.04.5 LTS, Linux 6.17.0-22-generic (same kernel version as HttpArena’s official host)
Core Isolation50/50 physical-core + SMT split: 3c/6t (0,1,2,6,7,8) server vs 3c/6t (3,4,5,9,10,11) load generator (THREADS=6)
Harness & ProfilesExact HttpArena scripts/benchmark.sh (RUNS=3 × 5 s, best run kept, lo mtu 1500, somaxconn=65535, rmem_max/wmem_max=7.5 MB, kernel cache drop) across all 9 scored Infrastructure profiles
Entries Testedokena (6855d0b), agensio (v0.1.0-alpha.23), nginx (1.31.4 -O3 -march=native + ngx_brotli), naati (PR #1906: v0.1.0, make release Clang -O3 -march=native -flto=thin), naati-tuned (v0.1.1, make pgo Clang two-stage PGO + ThinLTO, inline fast-path small-POST /baseline11, gzip_static on, backlog=65535)

Methodology note: Vultr’s default /etc/hosts mapped ::1 localhost ahead of IPv4, causing h2load-h3 to send QUIC packets only to [::1]:8443 against IPv4-only listeners (nginx and naati). Commenting out ::1 localhost in /etc/hosts matched HttpArena’s IPv4 loopback resolution so all 5 servers ran all 9 profiles cleanly.

HttpArena Infrastructure Composite Leaderboard (9 Scored Profiles)

Scored using HttpArena’s exact composite formula: each profile averages RPS across its scored connection counts (256c + 1024c for H2), normalizes 0–1,000 against the field leader (weight 1 each, max 9,000 raw), with an optional +500/profile memory efficiency bonus (sqrt(rps) / memoryMB, max 13,500).

RankServerLangRaw /9,000+Mem /13,500baselinepipelinedlimited-connjson-tlsstatic-tlsbaseline-h2 (avg)static-h2 (avg)baseline-h3static-h3
#1okenax86-64 Asm8,33711,763515,5143,670,832418,650170,265121,2482,886,935314,894974,831144,179
#2naati-tunedGoose7,0338,388603,8346,965,075437,421149,704111,9372,036,366133,649791,93341,834
#3agensioC++6,86910,227418,692684,589373,082147,748108,2482,437,507265,006921,740120,059
#4naati (PR #1906)Goose6,8578,200518,3926,974,876427,403148,961109,2722,035,255134,462803,92641,554
#5nginx (1.31.4 -O3)C4,4895,188399,331483,364346,156123,44388,435350,002107,255680,24350,822

Per-Profile Normalized Points (0–1,000 each) & Tail Latency Highlights

ServerRaw /9,000baselinepipelinedlimited-connjson-tlsstatic-tlsbaseline-h2static-h2baseline-h3static-h3
okena8,3378545269571,0001,0001,0001,0001,0001,000
naati-tuned7,0331,0009991,000879923705424812290
agensio6,86969398853868893844842946833
naati (PR #1906)6,8578591,000977875901705427825288
nginx (1.31.4 -O3)4,48966169791725729121341698352

Key findings from the 9-profile run:

  • naati-tuned finished #2 overall (7,033 / 9,000), ahead of C++ agensio (6,869) and +56.7% ahead of tuned NGINX 1.31.4 (4,489).
  • Beat tuned NGINX 1.31.4 on 8 of 9 profiles — pipelined 14.4× (6.97M vs 483k, p99 10.2 ms vs 223.9 ms), baseline-h2 5.82× (2.04M vs 350k), baseline +51% (603.8k vs 399.3k, p99 7.42 ms vs 17.30 ms), static-tls +27%, limited-conn +26% (13.7 ms vs 35.9 ms p99), static-h2 +25%, json-tls +21%, baseline-h3 +18% — while NGINX led on static-h3 (50.8k vs 41.8k).
  • Beat okena (hand-written x86-64 assembly) on all 3 HTTP/1.1 connection profiles (baseline +17%, pipelined 1.90×, limited-conn +4.5% with 46% lower p99 latency: 13.7 ms vs 25.6 ms).
  • Where the remaining gap to #1 lives: 1,286 of the 1,304-point gap behind okena sits in just two profiles — static-h2 (-576 pts) and static-h3 (-710 pts), where assets larger than 32 KiB (app.js.br, hero.webp, vendor.js.br) bypass the small-file fast path and H3 large-file stream pacing lags okena/agensio. Across the other 7 profiles combined, naati-tuned scores 6,319 vs okena’s 6,337 (0.28% apart).

Note: This is a self-hosted 6-core bare-metal execution of HttpArena’s public harness rather than an official http-arena.com 64-core Threadripper run. See Third-Party Benchmarks for official PR #1906 status.