Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136
Ubuntu
Desktop
7 months ago
Test name Executions per second
text.includes() 903737472.0 Ops/sec
regex.test() 22967916.0 Ops/sec
string.match() 13198304.0 Ops/sec
string.indexOf() 909759488.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()