[dancer-users] little comparison of frameworks
WK
wanradt at gmail.com
Tue Jul 12 11:56:30 BST 2016
Hi!
I watched Kirsten Hunter's "Becoming a polyglot" talk at YAPC:NA
(https://www.youtube.com/watch?v=pJgpaJpz6sI) and as she made it so
easy with her docker container to use, i made simple benchmarking for
all those 5 (6) examples of implementations (same API in 5 languages).
For every implementation I run at least 5 times following test:
$ ab -n 1000 -c 5 localhost:8080/api/quotes/random
And here come best results for every participant:
Node (express)
==============
Requests per second: 882.22 [#/sec] (mean)
Node (hapi)
===========
Requests per second: 652.65 [#/sec] (mean)
Perl (Dancer)
=============
Requests per second: 184.71 [#/sec] (mean)
PHP
===
Requests per second: 132.61 [#/sec] (mean)
Python (Flask)
==============
Requests per second: 69.33 [#/sec] (mean)
Ruby (Sinatra)
==============
Requests per second: 39.78 [#/sec] (mean)
Note: every participant's worst result was better than next result.
All servers were run as they are, without tweaking or using
alternative deployments.
As you may see, if you want to write really fast web framework, you
must give right name to it ;) (hint: results are in alphabetical
order)
Wbr,
--
Kõike hääd,
Gunnar
More information about the dancer-users
mailing list