Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
one year ago
Test name Executions per second
text.includes() 39782252.0 Ops/sec
text.test() 25456126.0 Ops/sec
text.match() 15267893.0 Ops/sec
text.indexOf() 31118830.0 Ops/sec
text.search() 20551124.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;