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="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>
<div id="context">
<p>
Some paragraph
</p>
</div>
var el = document.getElementsByTagName('p')[0];
$('p').die('click');
$('#context').undelegate('p', 'click', $.noop);
$(document).undelegate('p', 'click', $.noop);
$('#context').off('click', 'p', $.noop);
$(document).off('click', 'p', $.noop);
$("p").off("click", $.noop);
$("p").unbind('click');
Ready to run.
Test | Ops/sec | |
---|---|---|
.live() |
| ready |
.live() with context |
| ready |
.delegate() |
| ready |
.delegate() on document |
| ready |
.on() |
| ready |
.on() on document |
| ready |
.on() direct |
| ready |
.click() |
| ready |
.bind() |
| ready |
native click |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.