Script Preparation code:
Tests:

Historical Performance Data aggregated from 115 community runs

Desktop Results:
Chrome 101 runs
filter
25.7M/s
FindIndex + splice
8.8M/s

Fastest: filter (2.9x faster)

View exact numbers
  • filter: 25,715,654 ops/sec
  • FindIndex + splice: 8,842,681 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: 18 minutes ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Chrome 151 on Linux
View result in a separate tab
filter
222.1M/s
FindIndex + splice
75.2M/s
View exact numbers
Test name Executions per second
filter 222,097,168 Ops/sec
FindIndex + splice 75,240,952 Ops/sec