Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.967 YaBrowser/23.9.1.967 Yowser/2.5 Safari/537.36
Yandex Browser 23
Windows
Desktop
one year ago
Test name Executions per second
first splice object 974531.2 Ops/sec
first splice number 975721.9 Ops/sec
first filter object 875590.9 Ops/sec
first filter number 856301.9 Ops/sec
last splice object 815175.6 Ops/sec
last splice number 806284.4 Ops/sec
last filter object 878619.6 Ops/sec
last filter number 874071.2 Ops/sec
Script Preparation code:
Tests:
  • findIndex, splice

  • filter

  • indexOf, splice

  • indexOf, splice, check

  • for, splice


;