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
<script src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script src='https://raw.github.com/documentcloud/underscore/master/underscore.js'></script>
<script src='https://raw.github.com/documentcloud/backbone/0.9.2/backbone.js'></script>
<script>var oldEvents = Backbone.Events;</script>
<script src='https://raw.github.com/documentcloud/backbone/0.5.3/backbone.js'></script>
<script>var olderEvents = Backbone.Events;</script>
<script src='https://raw.github.com/documentcloud/backbone/master/backbone.js'></script>
<script>var masterEvents = Backbone.Events;</script>
old = _.extend({}, oldEvents);
older = _.extend({}, olderEvents);
master = _.extend({}, masterEvents);
jquery = $({});
numEvents = 3;
numListeners = 100;
_.times(numEvents, function(event) {
_.times(numListeners, function() {
older.bind("event" + event, function(){});
old.on("event" + event, function(){});
jquery.on("event" + event, function(){});
master.on("event" + event, function(){});
});
});
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery 1.8.3 |
| ready |
Backbone 0.5.3 |
| ready |
Backbone 0.9.2 |
| ready |
Backbone 0.9.9 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.