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
<table id="game-grid">
<tbody>
<tr>
<td id="cell-0-0" class="active"></td>
<td id="cell-0-1"></td>
<td id="cell-0-2"></td>
<td id="cell-0-3"></td>
<td id="cell-0-4"></td>
</tr>
<tr>
<td id="cell-1-0" class="active"></td>
<td id="cell-1-1"></td>
<td id="cell-1-2"></td>
<td id="cell-1-3"></td>
<td id="cell-1-4" class="active"></td>
</tr>
<tr>
<td id="cell-2-0"></td>
<td id="cell-2-1"></td>
<td id="cell-2-2" class="active"></td>
<td id="cell-2-3"></td>
<td id="cell-2-4"></td>
</tr>
<tr>
<td id="cell-3-0"></td>
<td id="cell-3-1"></td>
<td id="cell-3-2" class="selected"></td>
<td id="cell-3-3"></td>
<td id="cell-3-4" class="active"></td>
</tr>
<tr>
<td id="cell-4-0" class="active"></td>
<td id="cell-4-1" class="active"></td>
<td id="cell-4-2"></td>
<td id="cell-4-3"></td>
<td id="cell-4-4" class="selected"></td>
</tr>
</tbody>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Ready to run.
Test | Ops/sec | |
---|---|---|
checking for class on any table cell click |
| ready |
filtering by class instead (two handlers) |
| ready |
non-delegation method |
| ready |
using attribute selectors |
| ready |
select by class only |
| ready |
non-delegation and checking for class on all cells |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.