Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Windows
Desktop
2 years ago
Test name Executions per second
text.includes() 14721886.0 Ops/sec
text.test() 8627462.0 Ops/sec
text.match() 7346010.5 Ops/sec
text.indexOf() 14703750.0 Ops/sec
text.search() 3730974.8 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;