2 ms·
Benchmarks that try to replicate reality actually shows the opposite, PHP web stack beats NodeJS web stack. https://www.techempower.com/benchmarks/#section=dat
by tored 6y ago
Benchmarks that try to replicate reality actually shows the opposite, PHP web stack beats NodeJS web stack.
https://www.techempower.com/benchmarks/#section=data-r19&hw=ph&test=query&l=zijzzz-1r&p=zik0zj-zijocf-zik0zj-zg24mv-v&d=e1 https://www.techempower.com/benchmarks/#section=data-r19&hw=...
It is certainly true that NodeJS has become much faster as your synthetic benchmarks shows, however we have to measure our programs in the context of intended use, as previous poster suggested.
NodeJS wins against PHP when NodeJS does not make an external database call, like in the two test suites JSON serialization and Plaintext, but as soon as you throw in MySQL database PHP wins.
What does this tells us? That V8, the implementation of the JavaScript, is faster than the Zend engine, the implementation of PHP, but the event based NodeJS platform is not faster than the PHP(Apache/Nginx) platform.
NodeJS performance has evolved massively thanks to V8 R&D, as you already mentioned, Zend Engine has also gained a lot performance but of course not comparable to V8 for obvious reasons, the prior is a Google based project, the latter is a volunteer community based project. However the PHP stack also consist of a web server, and they has also evolved massively the past 20 years, Nginx is relatively new on the scene with an event based asynchronous architecture and Apache has evolved with a new PHP module.
I think your personal attacks against muglug, regardless if he was right or wrong, is not appropriate for this forum, especially when you yourself is not entirely up to date.
Edit: typo