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
<script>
var glcanvas = document.createElement('canvas');
var gl = glcanvas.getContext('webgl');
var texHD = gl.createTexture();
function imageLoaded(i) {
gl.bindTexture(gl.TEXTURE_2D, texHD);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, i);
}
</script>
<img id="imgHD" onload="imageLoaded" src="https://tctechcrunch2011.files.wordpress.com/2013/05/sf-directions-from-home.png">
<script>
var canvasHD = document.createElement('canvas');
canvasHD.width = 1920;
canvasHD.height = 1080;
var imgHD = document.getElementById("imgHD");
var buffHD = new Uint8Array(1920*1080*4);
var idHD = document.createElement("canvas").getContext("2d").createImageData(1920,1080);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
texImage2D HD |
| ready |
texImage2D HD buffer |
| ready |
texImage2D HD ImageData |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.