Run details:
Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
regex start 279.6 Ops/sec
startsWith 357.5 Ops/sec
regex end 264.1 Ops/sec
endsWith 362.7 Ops/sec
indexOf start 3743.7 Ops/sec
indexOf end 3748.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end