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/NobleJS/setImmediate/master/setImmediate.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/dojo/1/dojo/dojo.xd.js"></script>
<script src="http://calvinmetcalf.github.io/promise-jsperf/javascripts/q.js"></script>
<script src="http://calvinmetcalf.github.io/promise-jsperf/javascripts/jQuery.js"></script>
<script src="http://medyk.org/deferred.js"></script>
<script>
window.define = function(factory) {
try{ delete window.define; } catch(e){ window.define = void 0; } // IE
window.when = factory();
};
window.define.amd = {};
</script>
<script src="http://calvinmetcalf.github.io/promise-jsperf/javascripts/when.js"></script>
<script src="http://calvinmetcalf.github.io/promise-jsperf/javascripts/rsvp.js"></script>
<script src="http://calvinmetcalf.github.io/promise-jsperf/javascripts/promiscuous.js"></script>
<script src="http://rawgithub.com/JeanHuguesRobert/l8/master/lib/whisper.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
promiscuous |
| ready |
when |
| ready |
jquery |
| ready |
RSVP |
| ready |
q |
| ready |
dojo |
| ready |
deferred |
| ready |
Parole |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.