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 if the size of the image and or sprite has an impact on the performance of css transform
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div style="position: relative; width: 960px; height: 530px;">
<div id="nopoweroftwo" style="position: absolute; top: 5px; left: 5px; width: 257px; height: 257px; background: red;">
</div>
<div id="poweroftwo" style="position: absolute; top: 263px; left: 5px; width: 256px; height: 256px; background: red;">
</div>
</div>
<script>
var good, bad;
var angle = 0;
$(function() {
good = $('poweroftwo');
bad = $('nopoweroftwo');
});
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Rotation: Power of two |
| ready |
Rotation: Not power of two |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.