Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array vs Float64Array performance
(version: 1)
Comparing performance of:
Array.prototype.sort vs Float64Array.prototype.sort
Created:
one year ago
by:
Registered User
Jump to the latest result
Script Preparation code:
const elementCount = 1_000_000; const array = new Array(elementCount); const f64array = new Float64Array(elementCount); for (let i = 0; i < elementCount; i++) { const value = Math.random(); array[i] = value; f64array[i] = value; } const comparator = (a, b) => a - b;
Tests:
Array.prototype.sort
array.sort(comparator);
Float64Array.prototype.sort
f64array.sort();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.prototype.sort
Float64Array.prototype.sort
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0
Browser/OS:
Firefox 145 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Array.prototype.sort
26.1 Ops/sec
Float64Array.prototype.sort
45.8 Ops/sec
Related benchmarks:
array vs int32array with conversion
array vs float32array without conversion
array vs float32array withoutconversion
array vs float32array without conversion 2
array vs float32array without conversion 3
sort performance fixed
array vs float32array performance test
array vs float32array performance test2
array vs Float64Array vs Float32Array (sort)
Comments
Confirm delete:
Do you really want to delete benchmark?