Script Preparation code:
x
 
var size = 50000;
var buf = new ArrayBuffer(size*8);
var view = new DataView(buf);
var data = new Float64Array(size);
Tests:
  • DataView

     
    for (let i=0; i < size; i++) {
        view.setFloat64(i*8, 992.2258);
    }
    for (let i=0; i < size; i++) {
        const res = view.getFloat64(i*8);
    }
  • Float64Array

     
    for (let i=0; i < size; i++) {
        data[i] =  992.2258;
    }
    for (let i=0; i < size; i++) {
        const res = data[i];
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    DataView
    Float64Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101 on Windows
View result in a separate tab
Test name Executions per second
DataView 67.3 Ops/sec
Float64Array 66.6 Ops/sec