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() 4078020.0 Ops/sec
text.test() 3804352.5 Ops/sec
text.match() 3262261.0 Ops/sec
text.indexOf() 7336637.0 Ops/sec
text.search() 1553341.6 Ops/sec
Script Preparation code:
Tests:
  • text.includes()

  • text.test()

  • text.match()

  • text.indexOf()

  • text.search()