Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Ubuntu
Desktop
2 years ago
Test name Executions per second
text.includes() 26138758.0 Ops/sec
regex.test() 21286250.0 Ops/sec
string.match() 13729291.0 Ops/sec
string.indexOf() 21574478.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()


;