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 5902 and 4077.
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 libreactorng · mongoose vs libioma · nginx vs libreactorng · nginx vs libioma · libreactorng vs libioma
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 5902 and 4077. 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 5902 and 3779. Both run on the same machine, in the same round, against the same profiles.
Is mongoose faster than libioma?
libioma is quicker than mongoose on 5 of the 5 profiles they both run. On the HTTP/1.1 composite they score 5902 and 3773. 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 4077 and 3779. 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 5902. 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