Run details:
Mozilla/5.0 (Linux; arm_64; Android 11; SM-A505FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.3.85.00 SA/3 Mobile Safari/537.36
Yandex Browser 22
Android
Mobile
one year ago
Test name Executions per second
text.includes() 2595308.5 Ops/sec
text.test() 1558232.2 Ops/sec
text.match() 1283430.0 Ops/sec
text.indexOf() 2607780.5 Ops/sec
text.search() 621882.1 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;