Script Preparation code:
AخA
 
var buffer = new Uint32Array(1024*1024);
for(var i=0; i< buffer.length; i++) {
    buffer[i] = Math.round(Math.random() * 256);                          
}
Tests:
  • UInt32Array Iteration copy

    x
     
    var start = 100; 
    var length = 200;
    var copyToPos = 1000;
    for(var i=0; i< length; i++) {
        buffer[copyToPos++] = buffer[start + i]               
    }
  • UInt32Array copyWithin

     
    var start = 100; 
    var length = 200;
    var copyToPos = 1000;
    buffer.copyWithin(copyToPos, start, start + length);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    UInt32Array Iteration copy
    UInt32Array copyWithin

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 22 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
Test name Executions per second
UInt32Array Iteration copy 1992968.0 Ops/sec
UInt32Array copyWithin 29905994.0 Ops/sec