Run details:
Mozilla/5.0 (Linux; arm_64; Android 12; Mi Note 10 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.174 YaBrowser/22.1.4.110.00 SA/3 Mobile Safari/537.36
Yandex Browser 22
Android
Mobile
one year ago
Test name Executions per second
text.includes() 4368264.0 Ops/sec
text.test() 3769031.8 Ops/sec
text.match() 3116984.0 Ops/sec
text.indexOf() 6343954.5 Ops/sec
text.search() 1362137.9 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()


;