Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

PHP can perform better than Node.js

DZone's Guide to

PHP can perform better than Node.js

· Web Dev Zone ·
Free Resource

Learn how error monitoring with Sentry closes the gap between the product team and your customers. With Sentry, you can focus on what you do best: building and scaling software that makes your users’ lives better.

My previous post about using Silex and AppServer-in-PHP similarly to ExpressJS generate quite a bit of interest. In the Hacker News thread there was a question about memory usage, and so I put the AppServer under siege. Memory usage stayed constant at:

13958 bergie    20   0  125m  10m 2136 S    1  0.6   0:00.28 php        
13959 bergie    20   0  125m  10m 2136 S    1  0.6   0:00.31 php 

Then I did the same Siege for the ExpressJS version:

14051 bergie    20   0  615m  12m 4988 S    0  0.7   0:00.34 node

The PHP implementation served 3.80 requests per second, while the Node.js version served 3.79, both on 11" MacBook Air with Ubuntu 11.04.

This trivial example isn't obviously the big test of PHP app serving vs. Node.js, but at least I was surprised that PHP did better than Node here.

 

Source: http://bergie.iki.fi/blog/php_can_perform_better_than_node-js/

What’s the best way to boost the efficiency of your product team and ship with confidence? Check out this ebook to learn how Sentry's real-time error monitoring helps developers stay in their workflow to fix bugs before the user even knows there’s a problem.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}