Run details:
Mozilla/5.0 (Android 13; Mobile; rv:143.0) Gecko/143.0 Firefox/143.0
Firefox Mobile 143
Android
Mobile
8 months ago
Test name Executions per second
text.includes() 1065237056.0 Ops/sec
regex.test() 11344882.0 Ops/sec
string.match() 7904322.5 Ops/sec
string.indexOf() 1064930432.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()