Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Browser:
Chrome 132
Operating system:
Chrome OS 14541.0.0
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Uint8ClampedArray
21.7M/s
Uint8Array
21.3M/s
View exact numbers
Test name
Executions per second
✓
Uint8ClampedArray
21,704,200 Ops/sec
Uint8Array
21,302,778 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];