Script Preparation code:
x
 
var size = 1024;
var typedArray = new Float64Array(size);
var array = new Array(size);
for(let i = 0; i < size; i++) {
  typedArray[i] = Math.random();
  array[i] = Math.random();
}
Tests:
  • typedArray

     
    const a = typedArray[Math.round(Math.random() * size)]
  • array

     
    const a = array[Math.round(Math.random() * size)]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    typedArray
    array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131 on Linux
View result in a separate tab
Test name Executions per second
typedArray 2445493504.0 Ops/sec
array 563880512.0 Ops/sec