Benchmark Environment
These published numbers come from an Ubuntu 24 bare-metal rerun using local loopback and the native Linux runtime.
All five frameworks were tested over HTTPS with TLS 1.3 serving the same Hello, World! response body. wrk drives the HTTP/1.1 runs and h2load drives the HTTP/2 runs against every server, for true apples-to-apples comparisons on the same bare-metal 8-core box. Go Fiber v3 has no HTTP/2 support, so it appears only in the HTTP/1.1 results.
Methodology
Every framework was tested under identical conditions to ensure a fair comparison:
- Benchmark tools -
wrk(8 threads) for HTTP/1.1;h2load(8 threads, 100 connections × 256 streams) for HTTP/2 - Protocols - HTTPS with TLS 1.3, measured over both HTTP/1.1 and HTTP/2
- Payload - Same
Hello, World!response body across all frameworks - Concurrency levels - HTTP/1.1 at 200, 500, 800, 1,200, 3,500 and 5,000 connections; HTTP/2 at 256 multiplexed streams per connection
- Frameworks - ALOS, Go Fiber v3 (prefork) and Go Gin against two Rust frameworks, xitca-web and ntex (both on rustls), tested side-by-side. Fiber v3 is HTTP/1.1 only.
- Environment - Local loopback on Ubuntu 24 bare metal (Xeon E3-1270 v6, 8 threads)
Why ALOS is faster: ALOS HTTP bypasses net/http entirely. On Linux amd64 it runs a custom edge-triggered epoll event loop with SO_REUSEPORT listener sharding across cores, a hand-rolled TLS 1.3 record layer, per-connection response batching, and zero-allocation routing hot paths. There are no interface dispatches or reflection in the request pipeline.
HTTP/1.1 Throughput (Requests/sec)
Peak HTTP/1.1 requests per second at 500 concurrent connections, the sweet spot for maximum throughput:
Peak Throughput (500 connections)
Throughput at All Connection Levels
| Framework | 200 conn | 500 conn | 800 conn | 1,200 conn | 3,500 conn | 5,000 conn |
|---|---|---|---|---|---|---|
| ALOS HTTP | 221,695 | 218,141 | 206,745 | 195,233 | 149,019 | 129,805 |
| xitca-web Rust | 198,342 | 194,218 | 182,341 | 172,583 | 137,283 | 114,299 |
| ntex Rust | 170,770 | 176,238 | 169,109 | 159,109 | 125,114 | 108,986 |
| Fiber v3 | 179,817 | 173,422 | 164,701 | 156,450 | 122,179 | 101,320 |
| Gin | 129,082 | 127,170 | 124,298 | 112,593 | 94,016 | 66,645 |
HTTP/1.1 Latency
Lower is better. Average HTTP/1.1 response time at 200 concurrent connections:
Average Latency (200 connections)
Avg Latency at All Connection Levels
| Framework | 200 conn | 500 conn | 800 conn | 1,200 conn | 3,500 conn | 5,000 conn |
|---|---|---|---|---|---|---|
| ALOS HTTP | 0.88 ms | 1.88 ms | 3.03 ms | 5.06 ms | 20.46 ms | 36.09 ms |
| xitca-web Rust | 1.20 ms | 2.39 ms | 4.00 ms | 6.48 ms | 25.39 ms | 44.49 ms |
| ntex Rust | 1.21 ms | 2.49 ms | 4.19 ms | 6.73 ms | 28.05 ms | 42.45 ms |
| Fiber v3 | 1.26 ms | 2.77 ms | 4.46 ms | 7.04 ms | 27.97 ms | 48.34 ms |
| Gin | 1.87 ms | 4.08 ms | 6.29 ms | 10.45 ms | 28.91 ms | 43.74 ms |
Max Latency (Worst-Case)
| Framework | 200 conn | 500 conn | 800 conn | 1,200 conn | 3,500 conn | 5,000 conn |
|---|---|---|---|---|---|---|
| ALOS HTTP | 39.75 ms | 88.26 ms | 159.33 ms | 203.46 ms | 537.34 ms | 849.76 ms |
| xitca-web Rust | 45.39 ms | 73.57 ms | 121.93 ms | 186.68 ms | 508.00 ms | 752.86 ms |
| ntex Rust | 45.65 ms | 77.92 ms | 125.68 ms | 185.57 ms | 578.20 ms | 856.09 ms |
| Fiber v3 | 35.07 ms | 83.17 ms | 126.07 ms | 191.90 ms | 586.39 ms | 867.96 ms |
| Gin | 42.11 ms | 78.55 ms | 121.01 ms | 294.63 ms | 457.55 ms | 438.61 ms |
HTTP/1.1 Transfer Rate
HTTP/1.1 data throughput in megabytes per second at all connection levels:
Peak Transfer Rate (500 connections)
Transfer/sec at All Connection Levels
| Framework | 200 conn | 500 conn | 800 conn | 1,200 conn | 3,500 conn | 5,000 conn |
|---|---|---|---|---|---|---|
| ALOS HTTP | 27.70 MB | 27.25 MB | 25.83 MB | 24.39 MB | 18.62 MB | 16.22 MB |
| xitca-web Rust | 24.59 MB | 24.08 MB | 22.61 MB | 21.40 MB | 17.02 MB | 14.17 MB |
| ntex Rust | 21.17 MB | 21.85 MB | 20.97 MB | 19.74 MB | 15.55 MB | 13.57 MB |
| Fiber v3 | 22.29 MB | 21.50 MB | 20.42 MB | 19.40 MB | 15.15 MB | 12.56 MB |
| Gin | 16.00 MB | 15.77 MB | 15.41 MB | 13.96 MB | 11.66 MB | 8.26 MB |
HTTP/1.1 Full Rankings
Complete HTTP/1.1 results from all five frameworks at peak throughput (500 connections), ranked by requests/sec:
| # | Framework | Requests/sec | Avg Latency | Transfer/sec | vs ALOS |
|---|---|---|---|---|---|
| 🥇 | ALOS HTTP | 218,141 | 1.88 ms | 27.25 MB/s | baseline |
| 🥈 | xitca-web Rust | 194,218 | 2.39 ms | 24.08 MB/s | -11.0% |
| 🥉 | ntex Rust | 176,238 | 2.49 ms | 21.85 MB/s | -19.2% |
| 4 | Fiber v3 | 173,422 | 2.77 ms | 21.50 MB/s | -20.5% |
| 5 | Gin | 127,170 | 4.08 ms | 15.77 MB/s | -41.7% |
HTTP/2 Throughput
The same servers over the same TLS 1.3, but with HTTP/2 stream multiplexing - many concurrent requests share each connection, so the per-syscall cost is amortized across hundreds of in-flight streams. Driven by h2load (8 client threads, 100 connections × 256 streams, peak of 3 runs). Fiber v3 is excluded here because fasthttp does not support HTTP/2. All four servers advertise a 256-stream limit, so this is a fair head-to-head.
Peak HTTP/2 Throughput (256 streams per connection)
HTTP/2 Throughput & Latency
| Framework | Requests/sec | Avg Latency | Max Latency |
|---|---|---|---|
| ALOS HTTP | 2,759,005 | 4.6 ms | 19.5 ms |
| xitca-web Rust | 1,364,879 | 14.3 ms | 77.7 ms |
| ntex Rust | 307,983 | 44.0 ms | 135.5 ms |
| Gin | 140,428 | 175.7 ms | 2,220 ms |
HTTP/1.1 vs HTTP/2: ALOS serves the same Hello, World! at ~218K req/s over HTTP/1.1 and ~2.76M req/s over HTTP/2 on the same 8-core box (roughly a 12× jump) because HTTP/2 multiplexing lets a single recv/send syscall carry hundreds of requests instead of one.
Router Benchmarks
Micro-benchmarks comparing the ALOS radix-tree router against four alternative routing strategies. All tests use go test -bench on the same machine with zero allocations as the target.
Five router implementations tested: ALOS Router (optimized radix tree with SoA hash table), Regex Router (compiled regexp per route), Trie Router (segment-based trie), Map Router (Go map with segment splitting), and Linear Router (brute-force linear scan).
Static Routes
| Path | ALOS | Trie | Map | Regex | Linear |
|---|---|---|---|---|---|
| / | 7.0 ns | 9.1 ns | 28.1 ns | 82.4 ns | 44.4 ns |
| /users | 8.9 ns | 12.1 ns | 28.2 ns | 131 ns | 52.8 ns |
| /api/v1/repos | 9.1 ns | 18.1 ns | 28.9 ns | 393 ns | 157 ns |
| /api/v1/health | 9.1 ns | 19.3 ns | 29.5 ns | 702 ns | 210 ns |
| /api/v2/status | 12.4 ns | 19.1 ns | 29.3 ns | 845 ns | 262 ns |
Parametric Routes
| Pattern | ALOS | Trie | Map | Regex | Linear |
|---|---|---|---|---|---|
| 1 param | 18.8 ns | 63.1 ns | 171 ns | 254 ns | 190 ns |
| 2 params | 23.1 ns | 111 ns | 314 ns | 510 ns | 333 ns |
| 3 params | 33.6 ns | 195 ns | 733 ns | 1,064 ns | 807 ns |
| Deep (4 segments) | 35.5 ns | 193 ns | 1,267 ns | 1,956 ns | 1,582 ns |
Mixed Workload
Realistic traffic mix of static, parametric, and wildcard lookups cycled round-robin.
Wildcard / Catch-All
Matching /files/static/images/logo.png against a /files/*filepath catch-all route.
Large Route Table (400 routes)
Stress test with 400 routes across 5 API versions, 10 resources, and 4 HTTP methods.
| Scenario | ALOS | Trie | Map | Regex | Linear |
|---|---|---|---|---|---|
| Static Hit | 12.3 ns | 21.4 ns | 31.7 ns | 1,016 ns | 646 ns |
| Param Hit | 30.2 ns | 61.4 ns | 643 ns | 2,625 ns | 1,141 ns |
| Miss | 11.5 ns | 10.4 ns | 506 ns | 4,379 ns | 948 ns |
Full Router Rankings
| # | Router | Static (avg) | 1-Param | Mixed | Large Table | Allocs |
|---|---|---|---|---|---|---|
| 🥇 | ALOS Router | 9.1 ns | 18.8 ns | 17.5 ns | 12.3 ns | 0 |
| 🥈 | Trie Router | 15.5 ns | 63.1 ns | 104 ns | 21.4 ns | 0-3 |
| 🥉 | Map Router | 28.8 ns | 171 ns | 273 ns | 31.7 ns | 0-17 |
| 4 | Linear Router | 138 ns | 190 ns | 342 ns | 646 ns | 1-16 |
| 5 | Regex Router | 410 ns | 254 ns | 952 ns | 1,016 ns | 1-3 |