Script Preparation code:
x
 
function suffle(arr) {
    const len = arr.length;
    for (let i = len - 1; i >= 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        [arr[i], arr[j]] = [arr[j], arr[i]];
    }
    return arr;
}
var obj = [];
for (let i = 0; i < 100; i++) {
    obj.push({
        [i]: i,
        [i + 1]: i + 1,
        [i + 2]: i + 2,
        [i + 3]: i + 3
    });
}
var num = [];
for (let i = 0; i < 100; i++) {
    num.push(i);
}
Tests:
  • Large Object Contents

     
    suffle(obj);
  • Number Content

     
    suffle(num);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Large Object Contents
    Number Content

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96 on Windows
View result in a separate tab
Test name Executions per second
Large Object Contents 36802.2 Ops/sec
Number Content 36799.9 Ops/sec