Been getting into Node JS and making a decision on which web framework I would like to go with so I'm trying out Express. See why I use twig.
Express has examples of their view rendering engine in Jade. I've never used Jade but have used both Twig and JinJa. The very simple syntax of Jade def will speed up application development however I see it being a learning curve since I like to write HTML5 etc. A benchmark would determine Jade's use in my application. I was also interested to see what this web framework stack would perform since I'm using the MVC architecture.
Using siege tool. Test is set for 100 concurrency and 1 minute duration.
siege -c 100 -b -t 1M http://domain/
app.set('view engine', 'jade');
** SIEGE 3.0.5 ** Preparing 100 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 39022 hits Availability: 100.00 % Elapsed time: 59.19 secs Data transferred: 5.88 MB Response time: 0.15 secs Transaction rate: 659.27 trans/sec Throughput: 0.10 MB/sec Concurrency: 99.63 Successful transactions: 39023 Failed transactions: 0 Longest transaction: 1.14 Shortest transaction: 0.00
app.set('view engine', 'twig');
** SIEGE 3.0.5 ** Preparing 100 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 303570 hits Availability: 100.00 % Elapsed time: 59.21 secs Data transferred: 41.11 MB Response time: 0.02 secs Transaction rate: 5127.01 trans/sec Throughput: 0.69 MB/sec Concurrency: 99.78 Successful transactions: 303570 Failed transactions: 0 Longest transaction: 0.77 Shortest transaction: 0.00
The results speak for themselves...