6 comments

[ 3.9 ms ] story [ 24.3 ms ] thread
Tip to make the stack traces better in javascript: name all of your anonymous functions.

For example,

    request.on('data', function requestReceivedData() { ... });
I've recently started doing this as well. You also get a performance boost if you define the functions once at the top and then do this:

   request.on('data', requestReceivedData)
Really great. I'd like to do all that locally though.
Is there some indication as to why you wouldn't be able to?
by default nodetime reports back to nodetime.com to display the results. But that's just the default. It can be set to report to any server and/or the console.
for the more DIY, hrtime.cputime() works great too.