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
Draw some text into a canvas and read it back.
<script>
var canvas = document.createElement('canvas');
canvas.width = 1024;
canvas.height = 1024;
var ctx = canvas.getContext('2d');
ctx.font = '12px arial,san-serif'
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
var canvas2 = document.createElement('canvas');
canvas2.width = 255;
canvas2.height = 64;
var ctx2 = canvas2.getContext('2d');
ctx2.font = '12px arial,san-serif'
ctx2.textAlign = 'center';
ctx2.textBaseline = 'middle';
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
bigCanvas |
| ready |
smallCanvas |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.