Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Set spread
    Array from set
    Filter
    Basic forEach
    for loop
    filterWithSet

    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; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123 on Windows
View result in a separate tab
Basic forEach
13.8M/s
filterWithSet
1.6M/s
for loop
1.4M/s
Filter
1.0M/s
Array from set
919K/s
Set spread
908K/s
View exact numbers
Test name Executions per second
Basic forEach 13,790,324 Ops/sec
filterWithSet 1,552,572 Ops/sec
for loop 1,399,112 Ops/sec
Filter 1,035,060 Ops/sec
Array from set 918,956 Ops/sec
Set spread 908,120 Ops/sec