Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36
Chrome Mobile 138
Android
Mobile
11 months ago
Test name Executions per second
text.includes() 51516744.0 Ops/sec
regex.test() 9548908.0 Ops/sec
string.match() 6127649.5 Ops/sec
string.indexOf() 48901456.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()