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.6.4.min.js">
</script>
<script>
$16 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.7.min.js">
</script>
<script>
$17 = jQuery.noConflict();
</script>
<div id="container16">
</div>
<div id="container17">
</div>
<script>
window.i = 0;
window.toAppend = '<a class="delegateMe"></a> ';
for (window.i = 0; i < 100; i++) { window.toAppend += window.toAppend; }
$16(function() {
window.$container16 = $16('#container16');
$container16.append(window.toAppend);
});
$17(function() {
window.$container17 = $17('#container17');
$container17.append(window.toAppend);
});
</script>
$container16.undelegate('click', 'a.delegateMe');
$container17.off('click', 'a.delegateMe');
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery 1.6.4's delegate() |
| ready |
jQuery 1.7's on() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.