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
A comparison of Promises/A+ implementations in active development.
Uses Q and Native Promises (if available) as a baseline to test allegedly "performant" promise implementations.
<script>
if (typeof Promise !== 'undefined') {
var NativePromise = Promise;
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/q.js/1.0.1/q.min.js"></script>
<script src="https://rawgit.com/calvinmetcalf/lie/master/dist/lie.noConflict.js"></script>
<script src="http://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.js"></script>
<script>
var RSVPPromise = RSVP.Promise;
var LiePromise = Lie;
</script>
<script src="http://petkaantonov.github.io/bluebird/cdn/bluebird-3.0.0.min.js"></script>
<script>
Promise.setScheduler(function(fn){fn();});
var BluebirdPromise = Promise;
</script>
<script src="https://rawgit.com/cujojs/when/3.2.1/es6-shim/Promise.js"></script>
<script>
var WhenPromise = Promise;
</script>
<script src="https://s3.amazonaws.com/es6-promises/promise-1.0.0.min.js"></script>
<script>
var PolyFillPromise = Promise;
var deferred = {resolve: function(){}};
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Bluebird deferred |
| ready |
RSVP deferred |
| ready |
Bluebird classic |
| ready |
RSVP classic |
| ready |
Q deferred |
| ready |
Q classic |
| ready |
when es6 shim |
| ready |
Lie |
| ready |
Native Promise |
| ready |
PolyFill Promise |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.