Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
rgb vs rgba canvas
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 11; Redmi Note 10T Build/RP1A.200720.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.118 Mobile Safari/537.36 XiaoMi/MiuiBrowser/14.40.2-gn
Browser:
Chrome Mobile 123
Operating system:
Android
Device Platform:
Mobile
Date tested:
6 months ago
Test name
Executions per second
alpha
169615.2 Ops/sec
no alpha
164539.7 Ops/sec
HTML Preparation code:
<canvas id="canvasOne" width="400" height="400"></canvas> <canvas id="canvasTwo" width="400" height="400"></canvas>
Script Preparation code:
var canvasOne = document.getElementById("canvasOne"); var ctxOne = canvasOne.getContext("2d"); var canvasTwo = document.getElementById("canvasTwo"); var ctxTwo = canvasTwo.getContext("2d");
Tests:
alpha
ctxOne.beginPath(); ctxOne.fillStyle = 'rgba(231, 76, 60, 0.1)'; ctxOne.arc(20, 20, 12, 0, Math.PI * 2, true); ctxOne.fill();
no alpha
ctxTwo.beginPath(); ctxTwo.fillStyle = 'rgb(249, 206, 201)'; ctxTwo.arc(20, 20, 12, 0, Math.PI * 2, true); ctxTwo.fill();