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 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Browser:
Firefox 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
New array
26K/s
Native fill
2K/s
Fill with loop
1K/s
View exact numbers
Test name
Executions per second
✓
New array
26,235 Ops/sec
Native fill
2,144 Ops/sec
Fill with loop
1,343 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);