Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Float32Array perf
(version: 1)
Comparing performance of:
Regular array vs Float32Array
Created:
8 months ago
by:
Guest
Go to the latest result
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); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Regular array
Float32Array
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
7 months ago
)
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/OS:
Opera 126 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Regular array
27K/s
Float32Array
2K/s
View exact numbers
Test name
Executions per second
✓
Regular array
27,210 Ops/sec
Float32Array
2,214 Ops/sec
Related benchmarks
array vs int32Array
array vs int16array
array vs float32array without conversion
array vs float64 for io and slice (fixed)
array vs float32array performance test
array vs float32array performance test2
array vs float32array max
Comments
Confirm delete:
Do you really want to delete benchmark?