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() 52674528.0 Ops/sec
text.test() 33881208.0 Ops/sec
text.match() 20856972.0 Ops/sec
text.indexOf() 2309313280.0 Ops/sec
text.search() 24932488.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;