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="cnv" width="320" height="240" style='display:none'>
</canvas>
<canvas id="cnvoff" width="960" height="240" style='display:none'>
</canvas>
<img id="img1" src="http://mozilla.org/media/img/firefox/template/header-
logo-inverse.png" style="display: none" />
<img id="img2" src="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png" style="display: none" />
<img id="img3" src="http://mozilla.org/media/img/firefox/template/header-logo-inverse.png" style="display: none" />
function createCanvas(w, h) {
return document.getElementById('cnvoff');
}
// globals
var g_ctx = document.getElementById('cnv').getContext('2d');
var g_img1 = document.getElementById('img1');
var g_img2 = document.getElementById('img2');
var g_img3 = document.getElementById('img3');
var g_offscreenCanvas = createCanvas(320*3, 240);
g_offscreenCanvas.getContext('2d').drawImage(g_img1, 320*0, 0);
g_offscreenCanvas.getContext('2d').drawImage(g_img2, 320*1, 0);
g_offscreenCanvas.getContext('2d').drawImage(g_img3, 320*2, 0);
Ready to run.
Test | Ops/sec | |
---|---|---|
img |
| ready |
not-in-dom canvas |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.