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='canvas' style='width: 1000px; height: 1000px;'></canvas>
const canvas = document.createElement('canvas')
const w=1000
const h=1000
canvas.width=w
canvas.height=h
const rnd = n => Math.random()*n
const irnd = n => Math.floor( rnd(n))
const ctx = canvas.getContext("2d")
ctx.clearRect(0,0,w,h)
Ready to run.
Test | Ops/sec | |
---|---|---|
fillRect with integer coordinates |
| ready |
fillRect with float coordinates |
| ready |
fillRect with random 'rgb()' colours |
| ready |
fillRect with random 'hsl()' colours |
| ready |
fillRect with random hsla colours |
| ready |
fillRect with random rgba() colours |
| ready |
Iterated 1x1 fillRect |
| ready |
Iterated ImageData |
| ready |
x |
| ready |
x |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.