Script Preparation code:
AخA
 
var last = 100000;
Tests:
  • Uint32

     
    for (let i; i < last; i++) {
        const x = new ArrayBuffer(4);
        const y = new Uint32Array(x);
        y[0] = 255;
    }
  • Normal

     
    for (let i; i < last; i++) {
        var y = 255;
    }
  • Uint32Array

     
    const x = new ArrayBuffer(4 * last);
    const y = new Uint32Array(x);
    last = y.length;
    for (let i; i < last; i++) {
        y[0] = 255;
    }
  • Uint8Array

     
    const x = new ArrayBuffer(last);
    const y = new Uint8Array(x);
    last = y.length;
    for (let i; i < last; i++) {
        y[0] = 255;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Uint32
    Normal
    Uint32Array
    Uint8Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Uint32 14092995.0 Ops/sec
Normal 14215886.0 Ops/sec
Uint32Array 13409.8 Ops/sec
Uint8Array 40984.4 Ops/sec