Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
alpha false
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/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
false
215941.0 Ops/sec
true
124805.2 Ops/sec
HTML Preparation code:
<div style="width: 830; height: 200; background-color: red;"> <canvas id="canvas1" width="400" height="400"></canvas> <canvas id="canvas2" width="400" height="400"></canvas> </div> <style> canvas { border: 1px solid black; } </style>
Script Preparation code:
var can = document.getElementById('canvas1'); var ctx = can.getContext('2d'); ctx.fillRect(50,50,50,50); ctx.clearRect(0,0,400,400); var can2 = document.getElementById('canvas2'); var ctx2 = can2.getContext('2d', {alpha: false} ); ctx2.fillRect(50,50,50,50); ctx2.clearRect(0,0,400,400);
Tests:
false
ctx2.fillStyle = 'rgba(255, 255, 255, 0.3)'; ctx2.fillRect(0,0,400,400);
true
ctx.fillStyle = 'rgba(255, 255, 255, 0.3)'; ctx.fillRect(0,0,400,400);