4 ms·
PHP used to be very slow, it got better with v7.0. It's still quite slow compared to C/C++/Rust/Go, more than 10x slower: https://benchmarksgame-team.pages.de
by bufferoverflow 8y ago
PHP used to be very slow, it got better with v7.0.
It's still quite slow compared to C/C++/Rust/Go, more than 10x slower:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/fasta.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- sieabahlpark 8y agoAn interpreted language is slower than a compiled binary? Color me shocked.
- hk__2 8y ago> An interpreted language is slower than a compiled binary? Color me shocked. That same benchmark shows JS code that’s 6x faster than PHP.
- barrkel 8y agoYes, but JS is faster than Ruby and Python, and indeed most of your go-to scripting options.
- anonytrary 8y agoJS has the advantage of being the thing that makes your website run faster on the screen of the user whose clicks are earning you ad dollars. JS is in a good spot.
- bufferoverflow 8y agoPHP is JIT-compiled, which helps.
- NVRM 8y agoNot always! https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/regexredux.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 8y agoFurthermore ;-) https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/regexredux-cpu.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 8y agoJust curious - why did you choose fasta as your comparison?