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="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<style>
img { margin-top: 100px; margin-bottom: 100px; }
.container { width: 300px; height: 300px; float: left; overflow: scroll; }
</style>
<div class="container" id="svgimgContainer">
<img src="http://upload.wikimedia.org/wikipedia/en/9/9f/Twitter_bird_logo_2012.svg" alt="" id="svgimg" />
</div>
<div class="container" id="pngimgContainer">
<img src="http://upload.wikimedia.org/wikipedia/en/thumb/9/9f/Twitter_bird_logo_2012.svg/200px-Twitter_bird_logo_2012.svg.png" alt="" id="pngimg" />
</div>
<div style="clear: both;"></div>
<script>
move = 1;
svgimgContainer = $( '#svgimgContainer' );
pngimgContainer = $( '#pngimgContainer' );
svgimgContainerElement = svgimgContainer.get();
pngimgContainerElement = pngimgContainer.get();
</script>
move = (move + 1) % 50;
Ready to run.
Test | Ops/sec | |
---|---|---|
SVG |
| ready |
PNG |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.