Script Preparation code:
x
 
const len = 16384;
window.len = len;
window.arr = new Array(len);
window.f32 = new Float32Array(len);
window.f64 = new Float64Array(len);
for (let i = 0; i < len; i++) {
  window.arr[i] = Math.random() * 2048;
  window.f32 = Math.fround(window.arr[i]);
  window.f64 = window.arr[i];
}
Tests:
  • Plain array

     
    let a = 0;
    for (let i = 1; i < window.len; i++) {
      a = window.arr[i] * window.arr[i - 1];
    }
  • Float32 Array

     
    let a = 0;
    for (let i = 1; i < window.len; i++) {
      a = window.f32[i] * window.f32[i - 1];
    }
  • Float64 Array

     
    let a = 0;
    for (let i = 1; i < window.len; i++) {
      a = window.f64[i] * window.f64[i - 1];
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Plain array
    Float32 Array
    Float64 Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 23 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Plain array 21286.1 Ops/sec
Float32 Array 1497.4 Ops/sec
Float64 Array 1544.5 Ops/sec