Elixir web framework comparison: any two, head to head
phoenix-bandit is ahead of plug-cowboy on 8 of the 10 tests they both run, and behind on 2. On the HTTP/1.1 composite phoenix-bandit scores 1260 and plug-cowboy 873.
Pick any two of the 2 Elixir 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 | phoenix-bandit | plug-cowboy | Delta | phoenix-bandit p99 | plug-cowboy p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| Baseline | 4,096 | 486,848 | 210,073 | +132% | 10.70ms | 25.70ms |
| Pipelined | 4,096 | 632,232 | 470,931 | +34% | 175.10ms | 395.00ms |
| Short-lived | 4,096 | 400,254 | 192,487 | +108% | 27.30ms | 29.10ms |
| Async Delay | 32,000 | 547,586 | 187,641 | +192% | 29.40ms | 167.90ms |
| JSON Comp | 4,096 | 93,061 | 100,877 | -8% | 336.30ms | 269.00ms |
| JSON Comp | 16,384 | 93,569 | 103,450 | -10% | 346.30ms | 255.80ms |
| JSON TLS | 4,096 | 165,452 | 153,591 | +8% | 68.46ms | 57.92ms |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 42.0 | 38.8 | +8% | 264us | 319us |
| Latency-1M | 1,024 | 3.9 | 1.0 | +290% | 10.47s | 15.15s |
| 8Gbit | 512 | 37.3 | 32.4 | +15% | 382us | 529us |
Common comparisons
Questions
Is phoenix-bandit faster than plug-cowboy?
phoenix-bandit is ahead of plug-cowboy on 8 of the 10 tests they both run, and behind on 2. On the HTTP/1.1 composite phoenix-bandit scores 1260 and plug-cowboy 873. Both run on the same machine, in the same round, against the same profiles.
Which Elixir framework is fastest overall?
phoenix-bandit holds the highest HTTP/1.1 composite of the Elixir web frameworks, at 1260. 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 Elixir entry
Results updated · Elixir composite ranking · Compare across languages · Other languages · Open the leaderboard