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
Get Id & Get Id + Split, self vs parent.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<div id="myId_1_2" class="myParent">
<span id="myChildId_1_2" class="myChild"></span>
</div>
<script>
var obj = {
myChild : $('#myId_1_2 .myChild')
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Basic Child Id |
| ready |
Basic Parent Id |
| ready |
Obj Child Id |
| ready |
Obj Parent Id |
| ready |
Basic Child Split |
| ready |
Basic Parent Split |
| ready |
Obj Child Split |
| ready |
Obj Parent Split |
| ready |
P > C id control |
| ready |
P > C Parent control |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.