Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Ubuntu
Desktop
one year ago
Test name Executions per second
text.includes() 15527243.0 Ops/sec
text.test() 10874626.0 Ops/sec
text.match() 7176072.0 Ops/sec
text.indexOf() 790673408.0 Ops/sec
text.search() 9562617.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()