4 ms·
I really like nodejs as well but i have some concerns, i built an app in tornado and then i wanted to try out node, so i built it in node as well with a postgre
by nashequilibrium 14y ago
I really like nodejs as well but i have some concerns, i built an app in tornado and then i wanted to try out node, so i built it in node as well with a postgres backend. I was surprised how much faster my tornado app was: using bcrypt blocking module for tornado with a factor of 8 gives me 42.51ms for login, on node i get 153ms, geting a user profile 6.7ms on tornado and 16ms on nodejs. These results are consistent across the app, where tornado seems to about 3 times faster. I am assuming that maybe this is due to the quality of the libraries, since i assume node is faster. Reading this article,(https://hacks.mozilla.org/2012/11/fully-loaded-node-a-node-js-holiday-season-part-2/ https://hacks.mozilla.org/2012/11/fully-loaded-node-a-node-j...) helped to understand node more as well as how some of the libraries deal with threading and async.
- jongleberry 14y ago1) are you using the synchronous or asynchronous version of bcrypt? 2) cached or uncached templates? 3) throw 1k+ requests per second and tell us which one is faster
- nashequilibrium 14y agoI am using the aync bcrypt module for nodejs. I am using it as an api for ios app. I will do the 1k test and let you know.