Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Safari 5 runs
BigList ForEach => includes in SmallTestList
68/s
SmallList ForEach => findIndex in BigList
5/s

Fastest: BigList ForEach => includes in SmallTestList (14.1x faster)

View exact numbers
  • BigList ForEach => includes in SmallTestList: 68 ops/sec
  • SmallList ForEach => findIndex in BigList : 5 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    SmallList ForEach => findIndex in BigList
    BigList ForEach => includes in SmallTestList

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128 on Mac OS X 10.15.7
View result in a separate tab
BigList ForEach => includes in SmallTestList
88/s
SmallList ForEach => findIndex in BigList
51/s
View exact numbers
Test name Executions per second
BigList ForEach => includes in SmallTestList 88 Ops/sec
SmallList ForEach => findIndex in BigList 51 Ops/sec