Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.3.838 Yowser/2.5 Safari/537.36
Yandex Browser 22
Linux
Desktop
one year ago
Test name Executions per second
text.includes() 21134024.0 Ops/sec
text.test() 12433454.0 Ops/sec
text.match() 10043452.0 Ops/sec
text.indexOf() 19855480.0 Ops/sec
text.search() 4519146.0 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;