Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
cache vs live
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/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
live
973K/s
cache
4K/s
View exact numbers
Test name
Executions per second
✓
live
973,038 Ops/sec
cache
4,250 Ops/sec
HTML Preparation code:
<canvas id="canvas" width="400" height="400"></canvas>
Script Preparation code:
var canvas = document.getElementById('canvas'); var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.fillStyle = '#000'; ctx.arc(6, 6, 6, 0, Math.PI * 2, true); ctx.fill(); var cache = ctx.getImageData(0, 0, canvas.width, canvas.height);
Tests:
cache
ctx.putImageData(cache, 0, 0);
live
ctx.beginPath(); ctx.fillStyle = '#000'; ctx.arc(12, 12, 6, 0, Math.PI * 2, true); ctx.fill();