Run details:
Mozilla/5.0 (Linux; Android 13; SM-G998B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
one year ago
Test name Executions per second
text.includes() 15117935.0 Ops/sec
text.test() 7218551.5 Ops/sec
text.match() 5713664.0 Ops/sec
text.indexOf() 14778342.0 Ops/sec
text.search() 2722299.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()