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="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<style type="text/css">
.toggleClass { display: none; }
</style>
<div class='togglecontainer'>
<div class='togglenext'>
click
<span class='dirup'>
↑
</span>
<span class='dirdown'>
↓
</span>
</div>
<div class='toggledbyprevious'>
arrrr
</div>
</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery toggle() |
| ready |
jQuery toggleClass() |
| ready |
jQuery add or removeClass() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.