i'm trying to optimize my nodejs app, i try to keep track of long synchronous CPU intensive
I wonder what is indicating the elapsed time in the console because it's much slower when i use jade renderer than strait out JSON.
res.json(account);
// GET /api/accounts/2 200 2ms - 1.06kb
res.render('template/profile', account);
// GET /template/profile/accounts/2 200 17ms - 3.41kb
What is this time exactly saying ? is it how long the request blocked nodejs, or just the time between request and answer ?
Is their a way to speed up jade rendering ?