As a response of my update of “Benchmark Helloworld in different frameworks” yesterday, @chris_mccord gave me some hints on Twitter. So here we go.
Improvements:
- using
wrk
instead of ab
-
log_level: :error
+ compile_time_purge_level: :error
- disable CSRF while remove
plug: protect_from_forgery
- disable also
plug :fetch_session
and plug :fetch_flash
(even we don’t use them on purpose for the test)
- run more requests in sum to keep the machine busy long enough to see if the CPU usage is above 30% - thanks
wrk
support duration instead of requests
- take the best of 3 runs
- closing all other tools and apps
I’ll test (like before) on my MacBookPro 15” Mid 2010, 2,53 GHz i5, 8 GB DDR3, OS X El Capitan 10.11.2 and wrk 4.0.0.
TL;DR Go is still faster than Elixir. But remember .. apples and peaches.
[see also https://www.techempower.com/]
Continue reading →