HttpArena
Comparisons

Scala web framework comparison: any two, head to head

zio-http is quicker than http4s on 10 of the 12 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 300 and 99.

Pick any two of the 2 Scala 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. What each profile measures.

ProfileConnszio-http req/sechttp4s req/secDeltazio-http p99http4s p99
Baseline5121,871,250372,198+403%509us13.30ms
Baseline4,0961,976,958383,090+416%3.60ms12.80ms
Pipelined5126,337,561580,806+991%4.24ms153.50ms
Pipelined4,0966,576,995582,913+1028%11.00ms142.70ms
Short-lived512634,044114,730+453%1.57ms4.62ms
Short-lived4,096643,253114,699+461%1.60ms4.63ms
JSON4,0961,005,352197,792+408%2.21ms6.11ms
JSON Comp512302,460102+296429%6.76ms838.50ms
JSON Comp4,096298,443454+65636%27.70ms3.34s
JSON Comp16,384297,019908+32611%58.70ms3.40s
Upload321,5851,966-19%63.30ms49.20ms
Upload2561,7952,085-14%521.90ms322.40ms

Common comparisons

zio-http vs http4s

Questions

Is zio-http faster than http4s?

zio-http is quicker than http4s on 10 of the 12 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 300 and 99. Both run on the same machine, in the same round, against the same profiles.

Which Scala framework is fastest overall?

zio-http holds the highest HTTP/1.1 composite of the Scala entries, at 300. 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 Scala entry

Results updated · Scala composite ranking · Other languages · Open the leaderboard