Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 13.0.1
Desktop
one year ago
Test name Executions per second
indexOf 11864810.0 Ops/sec
includes 12049212.0 Ops/sec
find 844.3 Ops/sec
findIndex 863.7 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • includes

  • find

  • findIndex