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.
| Profile | Conns | flare | mojo-http | Delta | flare p99 | mojo-http p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 2,852,340 | 4,066,066 | -30% | 24.20ms | 1.30ms |
| Pipelined | 4,096 | 14,575,354 | 35,609,830 | -59% | 66.30ms | 2.45ms |
| Short-lived | 4,096 | 2,295,363 | 2,697,894 | -15% | 9.48ms | 1.96ms |
| JSON Comp | 4,096 | 657,336 | 1,072,075 | -39% | 76.10ms | 9.08ms |
| JSON Comp | 16,384 | 643,851 | 1,053,734 | -39% | 319.50ms | 46.50ms |
| JSON TLS | 4,096 | 356,381 | 1,823,508 | -80% | 108.87ms | 34.78ms |
| Static TLS | 1,024 | 143,217 | 898,288 | -84% | 43.52ms | 15.13ms |
| Baseline | 256 | 9,322,107 | 16,379,304 | -43% | 18.82ms | 1.40ms |
| Baseline | 1,024 | 8,815,612 | 16,337,623 | -46% | 118.46ms | 5.67ms |
| Static | 256 | 108,842 | 871,600 | -88% | 325.07ms | 26.21ms |
| Static | 1,024 | 107,278 | 909,694 | -88% | 1.23s | 74.43ms |
| Baseline (h2c) | 256 | 9,663,836 | 16,662,420 | -42% | 6.88ms | 1.39ms |
| Baseline (h2c) | 1,024 | 9,203,108 | 16,737,009 | -45% | 80.44ms | 6.04ms |
| Baseline (h2c) | 4,096 | 9,033,659 | 15,877,893 | -43% | 389.71ms | 45.19ms |
| JSON (h2c) | 1,024 | 2,154,451 | 3,934,222 | -45% | 86.44ms | 14.08ms |
| JSON (h2c) | 4,096 | 2,151,044 | 3,867,513 | -44% | 904.46ms | 56.12ms |
| Baseline | 64 | 5,040,889 | 6,664,086 | -24% | 2.07ms | 1.22ms |
| Static | 64 | 92,724 | 939,794 | -90% | 115.90ms | 10.57ms |
| Unary | 256 | 4,587,276 | 7,211,033 | -36% | 13.34ms | 5.29ms |
| Unary | 1,024 | 4,421,801 | 7,281,936 | -39% | 184.03ms | 10.98ms |
| Unary TLS | 256 | 4,502,723 | 7,140,616 | -37% | 27.84ms | 2.79ms |
| Unary TLS | 1,024 | 4,436,106 | 7,109,051 | -38% | 187.98ms | 12.49ms |
| Echo | 512 | 3,870,821 | 4,084,834 | -5% | 475us | 285us |
| Echo | 4,096 | 3,988,248 | 4,217,684 | -5% | 13.30ms | 1.47ms |
| Echo | 16,384 | 3,950,042 | 3,894,433 | +1% | 63.60ms | 5.58ms |
| Echo Pipelined | 512 | 29,827,484 | 58,798,265 | -49% | 1.06ms | 304us |
| Echo Pipelined | 4,096 | 33,205,830 | 60,459,552 | -45% | 23.80ms | 1.61ms |
| Echo Pipelined | 16,384 | 34,164,768 | 55,823,212 | -39% | 75.40ms | 6.54ms |
| Echo Short-lived | 512 | 1,875,608 | 2,349,383 | -20% | 702us | 522us |
| Echo Short-lived | 4,096 | 2,117,405 | 2,535,048 | -16% | 7.79ms | 2.04ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 75.4 | 96.8 | -22% | 104us | 99us |
| Latency-1M | 1,024 | 81.8 | 94.0 | -13% | 195us | 164us |
| 8Gbit | 512 | 75.9 | 91.8 | -17% | 137us | 108us |
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