visionmedia/co — pull request #142 by pjeby (2014-08-10 05:32:02+00:00)
Title: Measure speed of async thunks, instead of synchronous/recursive ones

The thunks measurement was based on synchronous (recursive) callbacks into co, but node I/O callbacks are never invoked until *after* the API call returns. This change gives a (somewhat) better idea of actual callback performance. process.nextTick is used in order to minimize the impact of delaying the callback (so we're not measuring node's I/O loop), and only the thunk benchmark is changed, because including context switching overhead in the other benchmarks would effectively measure it *twice*.

I renamed the benchmark so that it'll be clearer that it's not measuring exactly the same thing any more.