C web framework comparison: any two, head to head
h2o is quicker than nginx on 5 of the 8 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 4710 and 3936.
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 | 4,096 | 3,284,513 | 3,641,609 | -10% | 6.79ms | 6.67ms |
| Pipelined | 4,096 | 4,037,345 | 4,938,603 | -18% | 35.90ms | 34.70ms |
| Short-lived | 4,096 | 2,626,297 | 2,651,569 | -1% | 7.65ms | 8.38ms |
| JSON TLS | 4,096 | 1,313,755 | 1,229,462 | +7% | 52.31ms | 290.08ms |
| Baseline | 256 | 3,414,750 | 16,106,978 | -79% | 46.53ms | 15.81ms |
| Baseline | 1,024 | 3,320,285 | 15,633,023 | -79% | 151.79ms | 87.91ms |
| Static | 256 | 802,090 | 363,898 | +120% | 76.31ms | 504.73ms |
| Static | 1,024 | 796,607 | 341,251 | +133% | 279.54ms | 1.55s |
Common comparisons
nginx vs h2o · nginx vs libreactorng · nginx vs libioma · h2o vs libreactorng · h2o vs libioma · libreactorng vs libioma
Questions
Is nginx faster than h2o?
h2o is quicker than nginx on 5 of the 8 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 4710 and 3936. 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 3 of the 3 profiles they both run. On the HTTP/1.1 composite they score 4710 and 3828. Both run on the same machine, in the same round, against the same profiles.
Is nginx faster than libioma?
libioma is quicker than nginx on 2 of the 2 profiles they both run. On the HTTP/1.1 composite they score 4710 and 3819. 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 3 of the 3 profiles they both run. On the HTTP/1.1 composite they score 3936 and 3828. 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 4710. 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 · Compare across languages · Other languages · Open the leaderboard