Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Test style formats on canvas
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Chrome OS 14541.0.0
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
HEX
3.0M/s
RGB
3.0M/s
RGBA
3.0M/s
HSL
2.5M/s
View exact numbers
Test name
Executions per second
✓
HEX
2,969,104 Ops/sec
RGB
2,965,323 Ops/sec
RGBA
2,964,685 Ops/sec
HSL
2,455,363 Ops/sec
Script Preparation code:
const canvas = document.createElement("canvas"); var ctx = canvas.getContext("2d");
Tests:
RGBA
ctx.fillStyle = 'rgba(246,122,81, 1)'; ctx.fillStyle = 'rgba(81,246,94, 1)';
RGB
ctx.fillStyle ='rgb(246,122,81)'; ctx.fillStyle ='rgb(81,246,94)';
HEX
ctx.fillStyle = '#f67a51'; ctx.fillStyle = '#51f65e';
HSL
ctx.fillStyle = 'hsl(15, 90%, 64%)'; ctx.fillStyle = 'hsl(125, 90%, 64%)';