Run details:
Mozilla/5.0 (Linux; Android 12; CPH2211) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
2 years ago
Test name Executions per second
regex start 251.0 Ops/sec
startsWith 247.7 Ops/sec
regex end 197.3 Ops/sec
endsWith 233.5 Ops/sec
indexOf start 3681.2 Ops/sec
indexOf end 3860.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end