Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
wellwell
(version: 0)
d
Comparing performance of:
fillRect vs fill
Created:
4 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<canvas align="center" id="canvas" width="800" height="800"></canvas>
Script Preparation code:
var ctx = document.getElementById('canvas').getContext('2d'); ctx.fillStyle = 'rgba(0,1,0,1)';
Tests:
fillRect
for(var i = 0; i < 500;i++){ ctx.fillRect(i,i,5,7); }
fill
ctx.beginPath(); for(var i = 0; i < 500;i++){ ctx.rect(i,i,5,7); } ctx.fill();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
fillRect
fill
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
rgb vs rgba vs hex canvas
rgb vs rgba vs hex canvas
rgb vs rgba vs hex canvas
rgb vs rgba vs hex canvas
rgb vs rgba (1 & 0.5) vs hex canvas
Comments
Confirm delete:
Do you really want to delete benchmark?