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
Latest versions - Backbone 1.1.2 and Exoskeleton 0.6.3
<script src='//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.underscore.js'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js'></script>
<script>var bbEvents = Backbone.Events;</script>
<script>var extend = _.extend; window._ = null;</script>
<script src="https://github.com/paulmillr/exoskeleton/releases/download/0.6.3/exoskeleton.js"></script>
<script>var exosEvents = Exoskeleton.Events;</script>
var numEvents = 3;
var numListeners = 100;
var bb = extend({x:0}, bbEvents);
var exos = extend({x:0}, exosEvents);
[bb, exos].forEach(function(obj) {
obj.on('event1', function() { obj.x++; });
obj.on('event2', function() { obj.x++; });
obj.off();
});
Ready to run.
Test | Ops/sec | |
---|---|---|
Exoskeleton |
| ready |
Backbone |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.