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 24383.2 Ops/sec
first splice number 24651.7 Ops/sec
first filter object 11958.5 Ops/sec
first filter number 12099.9 Ops/sec
last splice object 13933.0 Ops/sec
last splice number 14107.8 Ops/sec
last filter object 12237.1 Ops/sec
last filter number 12048.9 Ops/sec
Script Preparation code:
Tests:
  • findIndex, splice

  • filter

  • indexOf, splice

  • indexOf, splice, check

  • for, splice


;