Run details:
Mozilla/5.0 (Linux; Android 12; HD1900) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
text.includes() 8988819.0 Ops/sec
text.test() 4910767.0 Ops/sec
text.match() 4442899.0 Ops/sec
text.indexOf() 9065587.0 Ops/sec
text.search() 2085057.6 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()