Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Linux
Desktop
one year ago
Test name Executions per second
text.includes() 30975288.0 Ops/sec
text.test() 21407242.0 Ops/sec
text.match() 14030703.0 Ops/sec
text.indexOf() 1366524160.0 Ops/sec
text.search() 17673732.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()