Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Float32Array perf
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 OPR/126.0.0.0 (Edition developer)
Browser:
Opera 126
Operating system:
Windows
Device Platform:
Desktop
Date tested:
4 months ago
Test name
Executions per second
Regular array
27210.0 Ops/sec
Float32Array
2213.9 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
function getRandomInt(max) { return Math.floor(Math.random() * max); } var a = [...new Array(10000)].map(_ => getRandomInt(1000000)); var ta = (new Float32Array(10000)).map(_ => getRandomInt(1000000));
Tests:
Regular array
for (let i = 0; i < 10000; ++i) { a[i] = a[i] + 1; }
Float32Array
for (let i = 0; i < 10000; ++i) { ta.set(ta[i] + 1,i); }