Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
findIndex + splice, first 236877.5 Ops/sec
findIndex + splice, last 166384.1 Ops/sec
filter, first 148564.4 Ops/sec
filter, last 149523.1 Ops/sec
indexOf + splice, first 235942.4 Ops/sec
indexOf + splice, last 409493.1 Ops/sec
Script Preparation code:
Tests:
  • findIndex, splice

  • filter

  • indexOf, splice

  • indexOf, splice, check

  • for, splice