Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Android
Desktop
one year ago
Test name Executions per second
RegEx.test 5803168.0 Ops/sec
String.includes 13325779.0 Ops/sec
String.match 3030473.8 Ops/sec
String.indexOf 13578751.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • String.indexOf