5 ms·
Python is faster on my laptop. time php -r '' real 0m0.064s user 0m0.055s sys 0m0.007s time python -c '' real 0m0.021s user 0m0.0
by bpicolo 9y ago
Python is faster on my laptop.
time php -r ''
real 0m0.064s
user 0m0.055s
sys 0m0.007s
time python -c ''
real 0m0.021s
user 0m0.011s
sys 0m0.005s
These startup metrics are also super arbitrary anyway, as in web servers code loading is behind your app server anyway (uwsgi, php-fpm, whatever).
- exikyut 9y agoIt's possible "php -nr ''" might be faster; -n stops loading php.ini, which is what points to all of the modules PHP ships with. > These startup metrics are also super arbitrary anyway, as in web servers code loading is behind your app server anyway (uwsgi, php-fpm, whatever). This is true; but only about 1-5% of everything _I_ do (as a hobbyist) faces a webserver, and then the things that do require a webserver are simplistic enough that I can write said webserver in bash and run it from socat.