Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A3003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
regex start 140.2 Ops/sec
startsWith 67.2 Ops/sec
regex end 133.1 Ops/sec
endsWith 62.0 Ops/sec
indexOf start 346.0 Ops/sec
indexOf end 60.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;