Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 YaBrowser/23.5.1.714 Yowser/2.5 Safari/537.36
Yandex Browser 23
Windows
Desktop
one year ago
Test name Executions per second
indexOf 2710183.2 Ops/sec
includes 12380149.0 Ops/sec
find 839.0 Ops/sec
findIndex 877.4 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • includes

  • find

  • findIndex