Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Windows
Desktop
6 months ago
Test name Executions per second
text.includes() 1611073792.0 Ops/sec
regex.test() 29814762.0 Ops/sec
string.match() 17015088.0 Ops/sec
string.indexOf() 1609614464.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()


;