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.
<script src="https://rawgithub.com/petkaantonov/bluebird/master/js/browser/bluebird.js"></script>
<script>
window.BluebirdPromise = window.Promise.noConflict();
delete window.Promise;
</script>
<script src="https://rawgithub.com/kriskowal/q/v1/q.js"></script>
<script src="http://mstade.github.com/promise-jsperf/javascripts/jQuery.js"></script>
<script src="http://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.js"></script>
<script src="http://mstade.github.com/promise-jsperf/javascripts/laissez-faire.js"></script>
<script src="http://mstade.github.com/promise-jsperf/javascripts/avow.js"></script>
<script src="https://rawgithub.com/yahoo/ypromise/master/promise.js"></script>
<script src="https://rawgithub.com/juandopazo/9772321/raw/c5c4f09adf847321e9582625909899fd175039e4/gistfile1.js"></script>
<script>PromisePolyfill.async = asap;</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
q |
| ready |
jquery |
| ready |
RSVP |
| ready |
avow |
| ready |
bluebird |
| ready |
ypromise |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.