Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Uint8Array vs Uint8ClampedArray
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.7.2 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.7
Device Platform:
Mobile
Date tested:
20 days ago
Test name
Executions per second
Uint8Array
214611648.0 Ops/sec
Uint8ClampedArray
205275744.0 Ops/sec
Script Preparation code:
var arr1 = new Uint8Array(10); var arr2 = new Uint8ClampedArray(10);
Tests:
Uint8Array
arr1[0] = 42; arr1[1] = 200; arr1[7] = arr1[1];
Uint8ClampedArray
arr2[0] = 42; arr2[1] = 200; arr2[7] = arr2[1];