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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 130
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Uint8Array
758K/s
Uint8ClampedArray
756K/s
View exact numbers
Test name
Executions per second
✓
Uint8Array
758,161 Ops/sec
Uint8ClampedArray
756,106 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];