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
var canvas1 = document.createElement('canvas')
;
var canvas2 = document.createElement('canvas')
;
for (var canvas of [canvas1, canvas2]) {
canvas.width = 256;
canvas.height = 256;
}
const opts = {
alpha: false,
};
var cx1 = canvas1.getContext('2d', opts);
var cx2 = canvas2.getContext('2d', opts);
for (var cx of [cx1, cx2]) {
cx.globalCompositeOperation = 'copy';
}
Ready to run.
Test | Ops/sec | |
---|---|---|
drawImage(self) |
| ready |
drawImage(other) |
| ready |
drawImage(self) by ping-pong |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.