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
Added Canvas
<canvas width="10" height="50" id="canvas"></canvas>
<script>
var classic = new Array(2000);
var canvas = document.getElementById("canvas").getContext("2d").getImageData(0, 0, 10, 50).data; // 50 * 10 * 4 = 2000
var unfixed = new Uint8Array();
var fixed = new Uint8Array(2000);
for (var i = 0; i < 2000; ++i) {
var number = ~~ (Math.random() * 200)
classic[i] = number;
canvas[i] = number;
unfixed[i] = number;
fixed[i] = number;
}
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Classic |
| ready |
Canvas |
| ready |
Unfixed |
| ready |
Fixed |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.