code without comments
I've recently been writing a web framework (Ash) for Node.js so I can understand what all the hype is about. As with all these types comparisons one has to perform the obligatory Apachebench load test. So here it is;
The test was based on creating the same web page in each framework and accessing it using the same URI. It consisted of a single page template that contained 7 independent modules (Components in Symfony and Views in CodeIgniter). There was no database access or web calls made, just reading local files and stitching them together.The test was run on OSX 10.6.4 with a 3.06 GHz Intel Core 2 Duo and 4 GB of 1067 MHz RAM. (Node.js was run with 2 processes using Spark).
Number of requests performed: 2000
Number of multiple requests made: 50
Number of requests performed: 2000
Number of multiple requests made: 150
Result, Node.js seems to rock.
import static org.jboss.netty.handler.codec.http.HttpHeaders.*;
import static org.jboss.netty.handler.codec.http.HttpHeaders.Names.*;
import static org.jboss.netty.handler.codec.http.HttpResponseStatus.*;
import static org.jboss.netty.handler.codec.http.HttpVersion.*;
import soul.destroying.language;