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
Simple comparison of promise creation and resolution between Angular's $q, bluebird, and native ES6 Promise (only in Chrome and FF).
<script>
window.NativePromise = Promise;
</script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js"></script>
<script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js"></script>
<script>
window.$q = angular.injector(['ng']).get('$q');
</script>
<div ng-app="app"></div>
Ready to run.
Test | Ops/sec | |
---|---|---|
Angular Promise instantiate and resolve |
| ready |
bluebird instantiate and resolve |
| ready |
Native |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.