When I started with Elixir and Phoenix I wanted to see with my own eyes the speed of functional approach and Erlang in comparing with other well known languages. I just want to compare the simplest possible “Hello world” in Javascript, PHP and Elixir.
Every implementation is benchmarked with the Apache HTTP server benchmarking tool ab
. I run 1000 requests on 10 and 100 concurrent connections with ab -n 1000 -c 10 http://127.0.0.1:../
. The return of “Hello world” ist quite enough but it differs a little bit from test to test. So no HTML, no pre/postprocessing or something. Well, its a bit “comparing apples with peaches”.
[see also https://www.techempower.com/]
Continue reading →