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="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js">
</script>
<table>
<tr>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
<td>
4
</td>
<td>
5
</td>
<td>
6
</td>
<td>
7
</td>
</tr>
<tr>
<td>
8
</td>
<td>
9
</td>
<td>
10
</td>
<td>
11
</td>
<td>
12
</td>
<td>
13
</td>
<td>
14
</td>
</tr>
<tr>
<td>
15
</td>
<td>
16
</td>
<td>
17
</td>
<td>
18
</td>
<td>
19
</td>
<td>
20
</td>
<td>
21
</td>
</tr>
</table>
<script>
var $ = jQuery,
trs = $('tr');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
slice |
| ready |
nth-child |
| ready |
nth-child with context |
| ready |
comparing array index |
| ready |
comparing .get() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.