Run details:
Mozilla/5.0 (X11; OS ROSA; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Linux
Desktop
one year ago
Test name Executions per second
text.includes() 6955845.0 Ops/sec
text.test() 6236321.0 Ops/sec
text.match() 4982086.5 Ops/sec
text.indexOf() 10524281.0 Ops/sec
text.search() 2267269.5 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()