Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array vs Float64Array performance (small array)
(version: 1)
Comparing performance of:
Array.prototype.sort vs Float64Array.prototype.sort
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
const elementCount = 500; 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:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?