HttpArena

Mojo web framework comparison: any two, head to head

mojo-http is ahead of flare on 32 of the 33 tests they both run, and behind on 1. Their composite scores are not on one scale: flare is ranked among web frameworks and mojo-http among experimental frameworks, and each league is measured against its own leader.

Pick any two of the 4 Mojo 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. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsflaremojo-httpDeltaflare p99mojo-http p99
Requests per second
Baseline4,0962,852,3404,066,066-30%24.20ms1.30ms
Pipelined4,09614,575,35435,609,830-59%66.30ms2.45ms
Short-lived4,0962,295,3632,697,894-15%9.48ms1.96ms
JSON Comp4,096657,3361,072,075-39%76.10ms9.08ms
JSON Comp16,384643,8511,053,734-39%319.50ms46.50ms
JSON TLS4,096356,3811,823,508-80%108.87ms34.78ms
Static TLS1,024143,217898,288-84%43.52ms15.13ms
Baseline2569,322,10716,379,304-43%18.82ms1.40ms
Baseline1,0248,815,61216,337,623-46%118.46ms5.67ms
Static256108,842871,600-88%325.07ms26.21ms
Static1,024107,278909,694-88%1.23s74.43ms
Baseline (h2c)2569,663,83616,662,420-42%6.88ms1.39ms
Baseline (h2c)1,0249,203,10816,737,009-45%80.44ms6.04ms
Baseline (h2c)4,0969,033,65915,877,893-43%389.71ms45.19ms
JSON (h2c)1,0242,154,4513,934,222-45%86.44ms14.08ms
JSON (h2c)4,0962,151,0443,867,513-44%904.46ms56.12ms
Baseline645,040,8896,664,086-24%2.07ms1.22ms
Static6492,724939,794-90%115.90ms10.57ms
Unary2564,587,2767,211,033-36%13.34ms5.29ms
Unary1,0244,421,8017,281,936-39%184.03ms10.98ms
Unary TLS2564,502,7237,140,616-37%27.84ms2.79ms
Unary TLS1,0244,436,1067,109,051-38%187.98ms12.49ms
Echo5123,870,8214,084,834-5%475us285us
Echo4,0963,988,2484,217,684-5%13.30ms1.47ms
Echo16,3843,950,0423,894,433+1%63.60ms5.58ms
Echo Pipelined51229,827,48458,798,265-49%1.06ms304us
Echo Pipelined4,09633,205,83060,459,552-45%23.80ms1.61ms
Echo Pipelined16,38434,164,76855,823,212-39%75.40ms6.54ms
Echo Short-lived5121,875,6082,349,383-20%702us522us
Echo Short-lived4,0962,117,4052,535,048-16%7.79ms2.04ms
Fixed-rate profiles: score out of 100
Latency-10K1,02475.496.8-22%104us99us
Latency-1M1,02481.894.0-13%195us164us
8Gbit51275.991.8-17%137us108us

Common comparisons

flare vs mojo-http · flare vs mojo-http + Caddy · flare vs mojo-http + nginx · mojo-http vs mojo-http + Caddy · mojo-http vs mojo-http + nginx · mojo-http + Caddy vs mojo-http + nginx

Questions

Is flare faster than mojo-http?

mojo-http is ahead of flare on 32 of the 33 tests they both run, and behind on 1. Their composite scores are not on one scale: flare is ranked among web frameworks and mojo-http among experimental frameworks, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.

Is flare faster than mojo-http + Caddy?

flare and mojo-http + Caddy share no test profile, so there is nothing to compare directly. Both run on the same machine, in the same round, against the same profiles.

Is flare faster than mojo-http + nginx?

flare and mojo-http + nginx share no test profile, so there is nothing to compare directly. Both run on the same machine, in the same round, against the same profiles.

Is mojo-http faster than mojo-http + Caddy?

mojo-http and mojo-http + Caddy share no test profile, so there is nothing to compare directly. Both run on the same machine, in the same round, against the same profiles.

Which Mojo framework is fastest overall?

Among the Mojo web frameworks, flare holds the highest HTTP/1.1 composite, at 3739; among the experimental Mojo frameworks, mojo-http holds the highest HTTP/1.1 composite, at 5840. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. 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 Mojo entry

Results updated · Mojo composite ranking · Compare across languages · Other languages · Open the leaderboard