Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Zero-fill Uint8Array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.37 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 130
Operating system:
iOS 18.2
Device Platform:
Mobile
Date tested:
one year ago
Native fill
77K/s
New array
27K/s
Fill with loop
4K/s
View exact numbers
Test name
Executions per second
✓
Native fill
76,576 Ops/sec
New array
26,615 Ops/sec
Fill with loop
4,411 Ops/sec
Script Preparation code:
var size = 1080 * 720; var globalArray = new Uint8Array(size);
Tests:
Native fill
globalArray.fill(0);
Fill with loop
var n = size; while(n--) globalArray[n] = 0;
New array
globalArray = new Uint8Array(size);