Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Safari 5 runs
ForEach
2K/s
findIndex
2K/s
View exact numbers
  • ForEach: 2,356 ops/sec
  • findIndex: 2,308 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
    findIndex
    ForEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Linux
View result in a separate tab
ForEach
149K/s
findIndex
57K/s
View exact numbers
Test name Executions per second
ForEach 148,998 Ops/sec
findIndex 56,690 Ops/sec