Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Linux
Desktop
one year ago
Test name Executions per second
text.includes() 24094210.0 Ops/sec
text.test() 14639634.0 Ops/sec
text.match() 9604715.0 Ops/sec
text.indexOf() 20848538.0 Ops/sec
text.search() 12407566.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()