Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
indexOf 2165978.2 Ops/sec
search 130389.3 Ops/sec
search (u) 130734.6 Ops/sec
exec 135923.6 Ops/sec
exec (U) 135931.3 Ops/sec
indexOf all 1242789.0 Ops/sec
Script Preparation code:
Tests:
  • indexOf

  • search

  • search (u)

  • exec

  • exec (U)

  • indexOf all