HttpArena
Frameworks

mongoose

Engine · C

Cesanta Mongoose — the embedded C networking library, run on the server side of its own event loop. One mg_mgr per core over SO_REUSEPORT listeners; HTTP/1.1, WebSocket and TLS (OpenSSL backend) all come from the library, with the entry supplying only the handlers.

Achievements

🥇 1 Gold · 🥈 2 Silver · 🥉 3 Bronze. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.

MedalAwardFieldRank
🥇 GoldWithin its languageC · HTTP/1.11 of 3
🥈 SilverFamily compositeComposite · WebSocket2 of 10
🥈 SilverTest profileWorkload · 8Gbit2 of 10
🥉 BronzeFamily compositeComposite · HTTP/1.13 of 27
🥉 BronzeTest profileConcurrency · Async Delay3 of 7
🥉 BronzeTest profileWebSocket · Echo Short-lived3 of 5

Composite rank

Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.

FamilyRankComposite
HTTP/1.13 of 275939
WebSocket2 of 102759

Every result

Alpha Round, 17 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,707,5981.10ms1.91ms6314.5%178MiB
ConnectionShort-lived4,0962,701,9331.43ms11.70ms6105.7%180MiB
ConcurrencyAsync Delay32,0002,668,97211.88ms13.90ms4897.5%1.1GiB
EfficiencyLatency-10K1,0249,98184.0us123.0us32.6%71MiB
EfficiencyLatency-1M1,024997,59296.3us167.0us2393.1%71MiB
EfficiencyLatency-500K/81,024474,223467277.9us2722816.0us821.2%51MiB
WorkloadJSON TLS4,0961,102,9643.69ms44.64ms6589.0%495MiB
Workload8Gbit51249,36398.5us126.0us300.8%138MiB
WorkloadStatic TLS1,024611,0581.71ms30.58ms6764.1%174MiB
WebSocketEcho5123,954,919128us323us6479.4%51MiB
WebSocketEcho4,0964,022,4331.02ms1.69ms6464.3%179MiB
WebSocketEcho16,3843,838,0154.23ms6.23ms6129.8%616MiB
WebSocketEcho Pipelined51258,271,516139us335us6426.2%51MiB
WebSocketEcho Pipelined4,09659,017,0721.11ms1.85ms6528.3%181MiB
WebSocketEcho Pipelined16,38456,446,9924.60ms6.84ms6452.3%625MiB
WebSocketEcho Short-lived5122,123,165146us506us5537.2%70MiB
WebSocketEcho Short-lived4,0962,533,448928us1.73ms5998.1%217MiB

Compared with

The C entries around mongoose on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs mongoose
nginx4710-21%head to head
h2o3936-34%head to head

Compare mongoose with any C entry · Compare mongoose with any entry, in any language · Every C entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry