Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Windows
Desktop
one year ago
Test name Executions per second
Filter 10 4182143.0 Ops/sec
Filter 100 67592.1 Ops/sec
Filter 1000 539.5 Ops/sec
Filter 10000 5.0 Ops/sec
FindIndex + Splice 10 13484995.0 Ops/sec
FindIndex + Splice 100 1433381.5 Ops/sec
FindIndex + Splice 1000 144764.3 Ops/sec
FindIndex + Splice 10000 13782.6 Ops/sec
Script Preparation code:
Tests:
  • Filter 10

  • Filter 100

  • Filter 1000

  • Filter 10000

  • FindIndex + Splice 10

  • FindIndex + Splice 100

  • FindIndex + Splice 1000

  • FindIndex + Splice 10000