DEV Community

Discussion on: NodeJS vs Apache performance battle for the conquest of my ❤️ ⚔️

Collapse
 
aedanobrien profile image
Aedan • Edited

Your comparison is fundamentally flawed because you're essentially just comparing asynchronous vs synchronous models, blocking vs non-blocking I/O.
Try PHP with Swoole extension. Swoole adds the same asynchronous support to PHP that NodeJS has, allowing for multiple concurrent http connections. PHP with Swoole is up to 10 times faster than NodeJS depending on your use case. It also leaves GO behind. Seriously, look into PHP Swoole, it will blow your mind.