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="root" style="display:none"></canvas>
root = document.getElementById("root");
root.width = 2000;
root.height = 2000;
screenCanvas = root.getContext("2d");
bufferLarge = screenCanvas.createImageData(2000, 2000);
bufferMediumLarge = screenCanvas.createImageData(1000, 1000);
bufferMedium = screenCanvas.createImageData(500, 500);
bufferSmall = screenCanvas.createImageData(250, 250);
bufferSmaller = screenCanvas.createImageData(125, 125);
Ready to run.
Test | Ops/sec | |
---|---|---|
Get Single Pixel |
| ready |
Set Large Block |
| ready |
Set Medium-Large Block |
| ready |
Set Medium Blocks |
| ready |
Set Smaller Blocks |
| ready |
Set Even Smaller Block |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.