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
Assess performance of scaling images up and down in drawImage.
<img id="image" src="http://jsperf.app/favicon.ico" />
<canvas id="canvas" width="32" height="32"></canvas>
var image = document.getElementById("image"),
canvas = document.getElementById("canvas"),
context = canvas.getContext("2d"),
w = image.width,
h = image.height;
// clear
canvas.height = canvas.height;
Ready to run.
Test | Ops/sec | |
---|---|---|
Scale Down |
| ready |
Scale Up |
| ready |
Scale Half Up |
| ready |
No Scale |
| ready |
No Scale Short |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.