Script Preparation code:
Tests:
  • native loop arr: few items

  • for of set: few items

  • for of arr: few items

  • native iter set: few items

  • for of arr: many items

  • for of set: many items

  • native loop arr: many items

  • native iter set: many items

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    native loop arr: few items
    for of set: few items
    for of arr: few items
    native iter set: few items
    for of arr: many items
    for of set: many items
    native loop arr: many items
    native iter set: many items

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36
Chrome 87 on Windows
View result in a separate tab
Test name Executions per second
native loop arr: few items 2355944.8 Ops/sec
for of set: few items 8464252.0 Ops/sec
for of arr: few items 8931765.0 Ops/sec
native iter set: few items 8418329.0 Ops/sec
for of arr: many items 763004.1 Ops/sec
for of set: many items 403391.9 Ops/sec
native loop arr: many items 9680.0 Ops/sec
native iter set: many items 400318.5 Ops/sec