HttpArena
Comparisons

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.

ProfileConnsmongoose req/secnginx req/secDeltamongoose p99nginx p99
Baseline4,0963,707,5983,284,513+13%1.91ms6.79ms
Short-lived4,0962,701,9332,626,297+3%11.70ms7.65ms
JSON TLS4,0961,102,9641,313,755-16%44.64ms52.31ms
Static TLS1,024611,058720,869-15%30.58ms29.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