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
Go vanilla js! Ps: if you cache dom node with jquery method just do the same with native methodes. Of course natives are way faster...
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<div id="testme">
</div>
<script>
$testme = $('#testme');
testme = document.getElementById('testme');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
$.css() |
| ready |
style.property |
| ready |
$.attr() |
| ready |
full native setAttribute |
| ready |
full native style.left |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.