Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array vs int32Array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 13; Mobile; rv:152.0) Gecko/152.0 Firefox/152.0
Browser:
Firefox Mobile 152
Operating system:
Android
Device Platform:
Mobile
Date tested:
one month ago
typedArray reverse
215K/s
array reverse
101K/s
typedArray i/o
56K/s
array i/o
32K/s
View exact numbers
Test name
Executions per second
✓
typedArray reverse
215,139 Ops/sec
array reverse
101,011 Ops/sec
typedArray i/o
56,373 Ops/sec
array i/o
32,024 Ops/sec
Script Preparation code:
function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } var a = [...Array(10000)].map(_ => Math.random(1000000)); var ta = (new Int32Array(10000)).map(_ => Math.random(1000000));
Tests:
array reverse
a.reverse();
typedArray reverse
ta.reverse();
array i/o
for (let i = 0; i < 10000; ++i) a[i] = a[i] + 1;
typedArray i/o
for (let i = 0; i < 10000; ++i) ta[i] = ta[i] + 1;