I tried to repeat this benchmark and would be glad to see comments to results I got.
Tested porjects: gists from original post with the following versions:
akka-http, 2.4.11 vs spray, 1.3.1 (akka - 2.3.6). In both cases scala 2.11.8, jvm 8.
The tests were done on AWS machine of c4.2xlarge type (8 cores CPU, 16GB memory, ulimit - 500000). As I can see from jvm and system monitoring, it is far from being limited by CPU, memory, disk IO or networking. OS: Ubuntu 14.04
Starting from the fact that my results are different (spray gives better results than akka-http). In addition I see interesting effects when I use different benchmark tools. I also started from wrk, but in addition to throughput I wanted to see failures if exist, and latency percentiles, so I added tests with weighttp and ab.
Throughput reported by ab is much different than the rest and shows drastic difference between akka-http and spray. Reported latency also don't have much in common. I can think that ab (as a single-threaded tool) can be bottleneck itself. But how to explain such a difference in throughput for akka-htttp and spray? And how to explain difference in reported latency.
Regards,
Olga Gorun