How fast is when.js?

34 views
Skip to first unread message

Brian Cavalier

unread,
Sep 26, 2012, 5:05:31 PM9/26/12
to cuj...@googlegroups.com
We think it's fast enough that you probably will never feel the need to test it.  But thinking it's fast, and verifying that it's fast are very different things, so we put together this small performance test suite for promise implementations.  It's still a work in progress, but already shows some interesting results.  The current tests cover very basic operations, such as simply creating 10k promises, or chaining 10k promises together to see how long it takes to resolve them in sequence.  We'll be adding more tests, and hopefully more libs in the future.

Please feel free to run the tests, and to suggest new tests and/or libraries that you'd like to see included.

Brian Cavalier

unread,
Oct 10, 2012, 3:02:06 PM10/10/12
to cuj...@googlegroups.com
Just updated the perf test results with the latest when.js, q, and deferred releases.  We've also included the test results with when.js running in paranoid mode (calls Object.freeze() on promises to ensure they are never tampered with).  You can see the effect of the v8 performance problem with frozen objects.  If performance is your ultimate concern, it's easy to turn off paranoid mode
Reply all
Reply to author
Forward
0 new messages