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
<canvas id="src" width="100" height="100">
</canvas>
<canvas id="dst" width="100" height="100">
</canvas>
<script>
var src = document.getElementById('src');
var dst = document.getElementById('dst');
var src_ctx = src.getContext('2d');
var dst_ctx = dst.getContext('2d');
var imageData = src_ctx.createImageData(100, 100);
var data = imageData.data;
var i = 0;
while (i < 100 * 100 * 4) {
data[i++] = Math.random() * 255 | 0;
data[i++] = Math.random() * 255 | 0;
data[i++] = Math.random() * 255 | 0;
data[i++] = 255;
}
src_ctx.putImageData(imageData, 0, 0);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
No Stretch No Lengths |
| ready |
No Stretch |
| ready |
Stretch |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.