Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Math.sumPrecise array/TypedArray
(version: 1)
Comparing performance of:
Array vs TypedArray
Created:
6 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let a = Array.from({length:50},(a,i)=> i+.1) let b = new Float32Array(a) // sumPrecise is new
Tests:
Array
Math.sumPrecise(a)
TypedArray
Math.sumPrecise(b)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array
TypedArray
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser/OS:
Firefox 144 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Array
2411111.0 Ops/sec
TypedArray
365616.7 Ops/sec
Related benchmarks:
loop vs reduce for sums
Direct Array vs Typed Array vs Array read performances
F vs r
`array[i]` vs `array.at(i)`
Iterate array backwards then clear
Array: [] vs at()
JS for loop vs Array.reduce
Array vs TypedArray write performance2
Array: [] vs at() last index
Comments
Confirm delete:
Do you really want to delete benchmark?