Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Canvas image size performance
(version: 4)
Performance
Comparing performance of:
no-hd 97.4KB 512x512 vs hd-version 433KB - 512x512
Created:
one year ago
by:
Registered User
Jump to the latest result
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(); };
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
no-hd 97.4KB 512x512
hd-version 433KB - 512x512
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
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/OS:
Chrome 130 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
no-hd 97.4KB 512x512
81566.9 Ops/sec
hd-version 433KB - 512x512
90141.0 Ops/sec
Related benchmarks:
PutImageData vs DrawImage
drawimage vs putimagedata 3b
zdzdzdzdzdz
Canvas vs img
Canvas vs img_fixed
Chimic
tailnh-test
tailnh-test2
putImageData vs drawImage methods
Comments
Confirm delete:
Do you really want to delete benchmark?