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.3.0-rc.0/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/1.2.2/bluebird.min.js"></script>
<script>
angular.module('app', []).run(['$q', function($q) {
window.$q = $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.