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
Test various options for creating checkboxes, and linking them together with events.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<table>
<tr>
<td>
<input type="checkbox" class="cb rid-1" />
</td>
<td>
<input type="checkbox" class="cb rid-2" />
</td>
<td>
<input type="checkbox" class="cb rid-3" />
</td>
<td>
<input type="checkbox" class="cb rid-4" />
</td>
<td>
<input type="checkbox" class="cb rid-5" />
</td>
<td>
<input type="checkbox" class="cb rid-6" />
</td>
<td>
<input type="checkbox" class="cb rid-7" />
</td>
</tr>
</table>
<script>
var $dummy = $('<input type="checkbox" class="dummy-checkbox" disabled="disabled" checked="checked" />').attr('title', 'this is some title').hide();
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
input:checkbox |
| ready |
:checkbox |
| ready |
[type=checkbox] |
| ready |
input[type=checkbox] |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.