Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Canvas filling test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Chrome OS 14541.0.0
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Gradient literal
14.8 Ops/sec
gradient literal 2
14.7 Ops/sec
HTML Preparation code:
<canvas id="canvasM" data-pixel-ratio="2" style="position:relative; z-index:0;"></canvas>
Script Preparation code:
var canvas = document.getElementById('canvasM'); let ctx = canvas.getContext('2d'); canvas.width = window.innerWidth; canvas.height = window.innerHeight; const xMult = 255 / canvas.width const yMult = 255 / canvas.height
Tests:
Gradient literal
for(let x = 0; x<canvas.width;x++){ for(let y = 0; y < canvas.height; y++){ ctx.fillStyle = `rgb(${x*xMult},${y*yMult},0)` ctx.fillRect(x,y,1,1) } }
gradient literal 2
for(let x = 0; x<canvas.width;x++){ for(let y = 0; y < canvas.height; y++){ ctx.fillStyle = `rgb(${x*xMult},${y*yMult},0)` ctx.fillRect(x,y,1,1) } }