Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
alpha false
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 129
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
false
111K/s
true
94K/s
View exact numbers
Test name
Executions per second
✓
false
110,946 Ops/sec
true
94,304 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);