Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
regex start 458.0 Ops/sec
startsWith 971.7 Ops/sec
regex end 402.6 Ops/sec
endsWith 981.8 Ops/sec
indexOf start 7120.0 Ops/sec
indexOf end 7111.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end