Explore by language

elixir web framework benchmarks

Benchmark results for 6 elixir web frameworks, measured with zrk at concurrency 64, 256, 512. Fastest at concurrency 64: cowboy_stream with 66 592 requests per second.

Compare throughput and latency together. These measurements describe a specific workload and test environment; performance in your application may differ.

Concurrency 64

elixir frameworks at concurrency 64, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 cowboy_stream 2.14 66 592 1.00 ms 1.60 ms 0
2 plug_bandit 1.20 47 801 1.36 ms 1.72 ms 0
3 phoenix_bandit 1.8 44 598 1.48 ms 1.75 ms 0
4 cowboy 2.14 38 993 1.57 ms 3.85 ms 0
5 plug_cowboy 1.20 30 574 2.00 ms 4.67 ms 0
6 phoenix_cowboy 1.8 29 392 2.10 ms 4.78 ms 0

Concurrency 256

elixir frameworks at concurrency 256, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 cowboy_stream 2.14 60 644 4.23 ms 6.16 ms 0
2 plug_bandit 1.20 44 686 5.75 ms 6.43 ms 0
3 phoenix_bandit 1.8 41 709 6.14 ms 6.74 ms 0
4 cowboy 2.14 37 374 6.58 ms 12.11 ms 0
5 plug_cowboy 1.20 29 681 8.27 ms 14.22 ms 0
6 phoenix_cowboy 1.8 29 104 8.44 ms 14.13 ms 0

Concurrency 512

elixir frameworks at concurrency 512, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 cowboy_stream 2.14 60 079 8.48 ms 11.89 ms 0
2 plug_bandit 1.20 43 953 11.64 ms 12.61 ms 0
3 phoenix_bandit 1.8 41 226 12.39 ms 14.17 ms 0
4 cowboy 2.14 36 155 13.72 ms 22.49 ms 0
5 plug_cowboy 1.20 28 449 17.41 ms 27.63 ms 0
6 phoenix_cowboy 1.8 27 683 17.90 ms 27.78 ms 0