C web framework comparison: any two, head to head
nginx is quicker than h2o on 11 of the 18 profiles they both run, and behind on 7. On the HTTP/1.1 composite they score 678 and 550.
Pick any two of the 6 C entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. What each profile measures.
| Profile | Conns | nginx req/sec | h2o req/sec | Delta | nginx p99 | h2o p99 |
|---|---|---|---|---|---|---|
| Baseline | 512 | 3,065,381 | 3,260,609 | -6% | 2.22ms | 1.77ms |
| Baseline | 4,096 | 3,346,698 | 3,641,609 | -8% | 6.77ms | 6.67ms |
| Pipelined | 512 | 4,111,715 | 4,669,801 | -12% | 8.32ms | 8.94ms |
| Pipelined | 4,096 | 4,073,673 | 4,938,603 | -18% | 35.40ms | 34.70ms |
| Short-lived | 512 | 2,279,316 | 2,185,016 | +4% | 1.37ms | 1.83ms |
| Short-lived | 4,096 | 2,635,762 | 2,651,569 | -1% | 6.73ms | 8.38ms |
| JSON | 4,096 | 1,810,041 | 1,491,320 | +21% | 8.73ms | 11.50ms |
| JSON TLS | 4,096 | 1,430,125 | 1,229,462 | +16% | 53.50ms | 290.08ms |
| Static | 1,024 | 1,144,503 | 452,811 | +153% | 31.18ms | 7.11ms |
| Static | 4,096 | 1,141,713 | 435,430 | +162% | 29.67ms | 50.49ms |
| Static | 6,800 | 1,155,130 | 421,018 | +174% | 32.24ms | 82.39ms |
| Static TLS | 1,024 | 749,207 | 374,332 | +100% | 41.38ms | 45.35ms |
| Static TLS | 4,096 | 729,083 | 315,314 | +131% | 86.98ms | 213.28ms |
| Static TLS | 6,800 | 696,555 | 295,941 | +135% | 165.70ms | 447.65ms |
| Baseline | 256 | 3,509,929 | 16,106,978 | -78% | 46.41ms | 15.81ms |
| Baseline | 1,024 | 3,422,284 | 15,633,023 | -78% | 149.24ms | 87.91ms |
| Static | 256 | 820,230 | 363,898 | +125% | 57.92ms | 504.73ms |
| Static | 1,024 | 812,796 | 341,251 | +138% | 188.44ms | 1.55s |
Common comparisons
nginx vs h2o · nginx vs libreactorng · nginx vs ringzero · h2o vs libreactorng · h2o vs ringzero · libreactorng vs ringzero
Questions
Is nginx faster than h2o?
nginx is quicker than h2o on 11 of the 18 profiles they both run, and behind on 7. On the HTTP/1.1 composite they score 678 and 550. Both run on the same machine, in the same round, against the same profiles.
Is nginx faster than libreactorng?
libreactorng is quicker than nginx on 6 of the 6 profiles they both run. On the HTTP/1.1 composite they score 678 and 191. Both run on the same machine, in the same round, against the same profiles.
Is nginx faster than ringzero?
ringzero is quicker than nginx on 4 of the 6 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 678 and 153. Both run on the same machine, in the same round, against the same profiles.
Is h2o faster than libreactorng?
libreactorng is quicker than h2o on 6 of the 6 profiles they both run. On the HTTP/1.1 composite they score 550 and 191. Both run on the same machine, in the same round, against the same profiles.
Which C framework is fastest overall?
nginx holds the highest HTTP/1.1 composite of the C entries, at 678. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every C entry
Results updated · C composite ranking · Other languages · Open the leaderboard