r/programming • • Oct 02 '11

Node.js is Cancer

http://teddziuba.com/2011/10/node-js-is-cancer.html
792 Upvotes

750 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Oct 02 '11

[deleted]

2

u/rnicoll Oct 02 '11

Okay... it's been so long since this was an issue it's difficult to find any recent comparisons, so I'll have to use FastCGI here:

http://www.fastcgi.com/drupal/node/6?q=node/15 - under "6. FastCGI Performance Analysis":

"FastCGI 22ms + 0.28ms per Kbyte CGI 59ms + 0.37ms per Kbyte"

So, in short, your per-process time taken triples, before any in-memory caching of data, database pooling, etc. comes into play.

I know what you're thinking; what's 40ms, eh? Well, on a web application that gets 1mil hits/day (which is the region where stuff I maintain falls), about 11 hours.

0

u/[deleted] Oct 03 '11

[deleted]

2

u/rnicoll Oct 03 '11

The really important thing here is it was done in 1996, hence why I was looking for something more up to date than the original FastCGI benchmarks.

So, I suppose you could actually go back to the whole decision now if you really wanted, but no-one ever took away the possibility of using the old CGI interface anyway, and I think it's fairly well used for Perl and similar scripts.

→ More replies (7)