jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
This is a comparison of different promise libraries, performing the most basic tasks of creating a promise, adding a then handler and then resolving the promise.
Removed SLOW laissez-faire Removed avow which has bad code for checking module
Resolve immediately, without any kind of timeout or delay. Don't include setImmediate shim to see how the libs fair on their own.
<script src="http://mstade.github.com/promise-jsperf/javascripts/q.js"></script>
<script src="https://raw.github.com/dfilatov/jspromise/master/vow.min.js"></script>
<script src="https://code.jquery.com/jquery-2.0.0.min.js"></script>
<script src="http://olostan.org.ua/libs/when.js"></script>
<script src="https://raw.github.com/tildeio/rsvp.js/rsvp2/browser/rsvp.min.js"></script>
<script src="https://raw.github.com/gameclosure/ff/master/lib/ff.js"></script>
<script src="https://raw.github.com/caolan/async/master/lib/async.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
when |
| ready |
q |
| ready |
jquery |
| ready |
Vow - jspromise |
| ready |
ff |
| ready |
rsvp |
| ready |
async |
| ready |
callback |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.