Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
one year ago
Test name Executions per second
includes 1498346.0 Ops/sec
!~indexOf 1499284.0 Ops/sec
indexOf > -1 1505453.2 Ops/sec
indexOf !== -1 1503583.9 Ops/sec
test 1142791.1 Ops/sec
match 1057815.9 Ops/sec
Script Preparation code:
Tests:
  • includes

  • !~indexOf

  • indexOf > -1

  • indexOf !== -1

  • test

  • match