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] = 16777215;
    }
  • Normal

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

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Uint32
    Normal
    Uint32Array

    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/104.0.0.0 Safari/537.36
Chrome 104 on Windows
View result in a separate tab
Test name Executions per second
Uint32 7404636.5 Ops/sec
Normal 7787835.0 Ops/sec
Uint32Array 23969.6 Ops/sec