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 size = 256;
var buffer = new Uint8Array(size*size*4);
var canvas = document.createElement('canvas');
canvas.width = 640;
canvas.height = 480;
var gl = canvas.getContext('experimental-webgl');
var tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA,
size, size, 0,
gl.RGBA, gl.UNSIGNED_BYTE,
null);
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
texImage2D full texture |
| ready |
texSubImage2D full texture |
| ready |
texSubImage2D partial texture |
| ready |
texSubImage2D 4 quadrants |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.