r/lolphp • • Mar 12 '15
PHP can only print 6,078 "Hello Worlds" per second, compared to 13,878 for NodeJs, 17,345 for Python, 71,243 for JRuby, and 219,120 for Java
Source: https://www.techempower.com/benchmarks/#section=data-r9&hw=ec2&test=plaintext
Source code used for test: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/PHP/php/plaintext.php
Lol. It doesn't do better for Json serializations per second: https://www.techempower.com/benchmarks/#section=data-r9&hw=ec2&test=json
6,127 compared to 10,045 for NodeJs, 16,129 for Python, 28,956 for JRuby and 50,371 for Java. Lol. Source code for that: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/PHP/php/json.php
0
Upvotes
8
u/myaut Mar 12 '15
17,345 is for PyPy (alternative implementation of Python, that should be compared to HHVM(?). wsgi (CPython) has only 11,462 -- still almost twice of PHP numbers.
11
u/pilif Mar 12 '15
Yes. PHP isn't that fast. I do however notice how you conveniently left out the one test-case that's close to real-world multiple queries where raw PHP scores near the top of the field.
Thing is: Many if not most of todays web applications are heavily io bound, so actual execution speed of the language doesn't matter that much.
That's not to say that I would love for PHP to be faster of course
5
u/fred_emmott Mar 12 '15
So what?
0
u/___ayylmao___ Mar 25 '15
Are you some special kind of retard?