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
Tests toDataURL image types with a large canvas
<canvas width="3000" height="3000" style="width:800px; height:800px;">
</canvas>
c = document.getElementsByTagName("canvas")[0];
ctx = c.getContext("2d");
cpa = ctx.getImageData;
for (var i=0; i<3000*3000; i++){
cpa.data[i*4+0]=Math.round(Math.random()*255);
cpa.data[i*4+1]=Math.round(Math.random()*255);
cpa.data[i*4+2]=Math.round(Math.random()*255);
cpa.data[i*4+3]=255;
}
ctx.putImageData(cpa,0,0);
Ready to run.
Test | Ops/sec | |
---|---|---|
empty parameter |
| ready |
image/png |
| ready |
image/jpeg |
| ready |
image/webp |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.