Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Linux
Desktop
9 months ago
Test name Executions per second
text.includes() 1568332800.0 Ops/sec
text.test() 28498808.0 Ops/sec
text.match() 12492502.0 Ops/sec
text.indexOf() 1625002752.0 Ops/sec
text.search() 19803168.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()