Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Linux
Desktop
one year ago
Test name Executions per second
text.includes() 17794866.0 Ops/sec
text.test() 10045472.0 Ops/sec
text.match() 7758337.0 Ops/sec
text.indexOf() 18103350.0 Ops/sec
text.search() 3686811.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;