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 performance of jQuery of using the class selector ".classname" vs the attribute selector "[class='classname']"
<div class="nothing nothing2 content nothing3" content>
<div class="nothing1 sub-content nothing3" content>
Lorem ipsum dolor sit amet.
</div>
</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
class selector |
| ready |
attribute selector |
| ready |
attribute contains selector |
| ready |
attribute contains word |
| ready |
attribute not equal selector |
| ready |
attribute only |
| ready |
by class name |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.