Your SlideShare is downloading. ×
0
NodeJS  vs  PHP & APACHE PHP & APACHE PHP & APACHE <ul><li>Radu Cojocaru </li></ul>
NodeJS <ul><li>creator: Ryan Dahl </li></ul><ul><li>server-side Javascript framework </li></ul><ul><li>event-based program...
PHP/NodeJS Script <ul><li>validate GET params </li></ul><ul><li>fetch content from a URL  (I/O) </li></ul><ul><li>process ...
Test <ul><li>ApacheBench (Gnuplot) </li></ul><ul><li>1000 requests, with a concurrency of 50 </li></ul><ul><li>PHP script ...
Results
 
Conclusion <ul><li>small scripts (webservices, logging/analytics) with lots of concurrent connections </li></ul><ul><li>lo...
Thank you :)
Upcoming SlideShare
Loading in...5
×

Nodejs vs php_apache

2,283

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,283
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Nodejs vs php_apache"

  1. 1. NodeJS vs PHP & APACHE PHP & APACHE PHP & APACHE <ul><li>Radu Cojocaru </li></ul>
  2. 2. NodeJS <ul><li>creator: Ryan Dahl </li></ul><ul><li>server-side Javascript framework </li></ul><ul><li>event-based programming </li></ul><ul><li>nonblocking network I/O and asynchronous file I/O </li></ul><ul><li>http://www.nodejs.org / </li></ul>
  3. 3. PHP/NodeJS Script <ul><li>validate GET params </li></ul><ul><li>fetch content from a URL (I/O) </li></ul><ul><li>process that content (stripping HTML tags) </li></ul><ul><li>read ~ 1000 keywords from the database (I/O) </li></ul><ul><li>search the text for those keywords </li></ul>
  4. 4. Test <ul><li>ApacheBench (Gnuplot) </li></ul><ul><li>1000 requests, with a concurrency of 50 </li></ul><ul><li>PHP script behind Apache webserver </li></ul><ul><li>NodeJS script with its own webserver </li></ul>
  5. 5. Results
  6. 7. Conclusion <ul><li>small scripts (webservices, logging/analytics) with lots of concurrent connections </li></ul><ul><li>lots of callbacks for multiple I/O operations </li></ul>
  7. 8. Thank you :)
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×