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('webgl2');
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 imgHD = document.getElementById("imgHD");
var canvasHD = document.createElement('canvas');
canvasHD.width = 1920;
canvasHD.height = 1080;
var bitmapHD = createImageBitmap(new ImageData(new Uint8Array(1920*1080*4), 1920, 1080));
var idHD = new ImageData(new Uint8Array(1920*1080*4), 1920, 1080);
var abHD = new Uint8Array(1920*1080*4).buffer;
var uint8HD = new Uint8Array(1920*1080*4);
var cuint8HD = new Uint8ClampedArray(1920*1080*4);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
texImage2D HD Image |
| ready |
texImage2D HD canvas |
| ready |
texImage2D HD Bitmap |
| ready |
texImage2D HD ImageData |
| ready |
texImage2D HD ArrayBuffer |
| ready |
texImage2D HD Uint8Array |
| ready |
texImage2D Uint8ClampedArray |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.