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
jquery.cssFrameAnimation - A jQuery plugin to emulate a timeline base animation using css classes
This test case will determine the best aproach
<div class="styleGroup">
<h3>Frame-by-frame animation</h3>
<nav class="horizontalMenu">
<ul class="frameByFrame">
<li><a href="#" title="Opt 1" id="button1" data-frames="4" class="hover"><span class="hidden">Opt 1</span></a></li>
<li><a href="#" title="Opt 2" id="button2" data-frames="9" class="hover"><span class="hidden">Opt 2</span></a></li>
<li><a href="#" title="Opt 3" id="button3" data-frames="9" class="hover"><span class="hidden">Opt 3</span></a></li>
<li><a href="#" title="Opt 4" id="button4" data-frames="7" class="hover"><span class="hidden">Opt 4</span></a></li>
<li><a href="#" title="Opt 5" id="button5" data-frames="4" class="hover"><span class="hidden">Opt 5</span></a></li>
</ul>
</nav>
</div>
<script>
var bbColorize = document.createElement("script");
bbColorize.type = "text/javascript";
bbColorize.async = true;
bbColorize.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bbColorize, s);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
setInterval |
| ready |
setTimeout |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.