DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > PHP can perform better than Node.js

PHP can perform better than Node.js

Henri Bergius user avatar by
Henri Bergius
·
Dec. 31, 11 · Web Dev Zone · Interview
Like (0)
Save
Tweet
5.70K Views

Join the DZone community and get the full member experience.

Join For Free

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/

PHP Node.js

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Caching Across Layers in Software Architecture
  • Troubleshooting HTTP 502 Bad Gateway in AWS EBS
  • C++ Creator Bjarne Stroustrup Interview
  • Streaming ETL with Apache Kafka in the Healthcare Industry

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo