Script Preparation code:
Tests:

Historical Performance Data aggregated from 116 community runs

Desktop Results:
Chrome 102 runs
filter
25.8M/s
FindIndex + splice
8.8M/s

Fastest: filter (2.9x faster)

View exact numbers
  • filter: 25,763,420 ops/sec
  • FindIndex + splice: 8,843,808 ops/sec
Firefox 14 runs
filter
196.0M/s
FindIndex + splice
27.4M/s

Fastest: filter (7.2x faster)

View exact numbers
  • filter: 195,983,712 ops/sec
  • FindIndex + splice: 27,360,552 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 + splice
    filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 19 days ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5.2 Mobile/15E148 Safari/604.1
Mobile Safari 26 on iOS 18.7
View result in a separate tab
filter
172.2M/s
FindIndex + splice
92.7M/s
View exact numbers
Test name Executions per second
filter 172,221,824 Ops/sec
FindIndex + splice 92,701,688 Ops/sec