Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Canvas image size performance
Performance
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
no-hd 97.4KB 512x512
150942.5 Ops/sec
hd-version 433KB - 512x5
147278.1 Ops/sec
HTML Preparation code:
<!DOCTYPE html> <html> <head> <title>HTML CSS JS</title> </head> <body> <canvas id='game' width='1920' height='1440'></canvas> </body> </html>
Script Preparation code:
const canvas = document.getElementById('game'); const ctx = canvas.getContext('2d');
Tests:
no-hd 97.4KB 512x512
const img1 = new Image(); img1.src = "https://i.ibb.co/QQC0N8h/poppyns.png"; // no-hd 97.4KB img1.onload = () => { ctx.save(); const x = 150; const y = 150; const radius = 455; ctx.beginPath(); ctx.arc(x, y, radius, 0, Math.PI * 2, true); ctx.closePath(); ctx.clip(); ctx.drawImage(img1, x - radius, y - radius, radius * 2, radius * 2); ctx.restore(); };
hd-version 433KB - 512x512
const img2 = new Image(); img2.src = "https://i.ibb.co/VVB6ttB/poppyns.png"; // no-hd 97.4KB img2.onload = () => { ctx.save(); const x = 150; const y = 150; const radius = 455; ctx.beginPath(); ctx.arc(x, y, radius, 0, Math.PI * 2, true); ctx.closePath(); ctx.clip(); ctx.drawImage(img2, x - radius, y - radius, radius * 2, radius * 2); ctx.restore(); };