C web framework comparison: any two, head to head
mongoose is quicker than nginx on 2 of the 4 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 5940 and 4710.
Pick any two of the 8 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 | mongoose req/sec | nginx req/sec | Delta | mongoose p99 | nginx p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 3,707,598 | 3,284,513 | +13% | 1.91ms | 6.79ms |
| Short-lived | 4,096 | 2,701,933 | 2,626,297 | +3% | 11.70ms | 7.65ms |
| JSON TLS | 4,096 | 1,102,964 | 1,313,755 | -16% | 44.64ms | 52.31ms |
| Static TLS | 1,024 | 611,058 | 720,869 | -15% | 30.58ms | 29.93ms |
Common comparisons
mongoose vs nginx · mongoose vs h2o · mongoose vs libreactorng · nginx vs h2o · nginx vs libreactorng · h2o vs libreactorng
Questions
Is mongoose faster than nginx?
mongoose is quicker than nginx on 2 of the 4 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 5940 and 4710. Both run on the same machine, in the same round, against the same profiles.
Is mongoose faster than h2o?
mongoose is quicker than h2o on 2 of the 3 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 5940 and 3936. Both run on the same machine, in the same round, against the same profiles.
Is mongoose faster than libreactorng?
libreactorng is quicker than mongoose on 4 of the 5 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 5940 and 3828. Both run on the same machine, in the same round, against the same profiles.
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.
Which C framework is fastest overall?
mongoose holds the highest HTTP/1.1 composite of the C entries, at 5940. 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