Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 7) 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() 13312423.0 Ops/sec
text.test() 6586247.5 Ops/sec
text.match() 1496153.0 Ops/sec
text.indexOf() 133240.0 Ops/sec
text.search() 2547724.5 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()