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
This testcase compares the performance from .attr() and .data()
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="test111"><div class="line"></div><div class="line"></div><div class="node"></div><div class="ckbox checked"><input type="checkbox" value="test1.1.1" name="name" text="Test 1.1.1" style="display:none;" checked="checked"></div><div class="file"></div><a checked="true" tvalue="test1.1.1" data-tvalue="test1.1.1" tname="name">Test 1.1.1</a></div>
Ready to run.
Test | Ops/sec | |
---|---|---|
data |
| ready |
attr |
| ready |
attr with data |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.