Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array vs Float64Array vs Float32Array (sort)
(version: 1)
Comparing performance of:
array sort vs Float64Array sort vs Float32Array sort
Created:
one year ago
by:
Guest
Go to the latest result
Script Preparation code:
var a = [...Array(10000)].map(_ => Math.random()); var ta = (new Float64Array(10000)).map(_ => Math.random()); var tb = (new Float32Array(10000)).map(_ => Math.random());
Tests:
array sort
a.sort();
Float64Array sort
ta.sort();
Float32Array sort
tb.sort();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
array sort
Float64Array sort
Float32Array sort
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Browser/OS:
Firefox 150 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Float32Array sort
9K/s
Float64Array sort
7K/s
array sort
1K/s
View exact numbers
Test name
Executions per second
✓
Float32Array sort
9,085 Ops/sec
Float64Array sort
7,033 Ops/sec
array sort
1,173 Ops/sec
Related benchmarks
array vs float32array without conversion
array vs Float64Array (small) 2
array vs Float64Array sort
array vs float32array performance test
array vs float32array performance test2
Comments
Confirm delete:
Do you really want to delete benchmark?