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 136.1 Ops/sec
startsWith 59.2 Ops/sec
regex end 133.8 Ops/sec
endsWith 51.9 Ops/sec
indexOf start 244.0 Ops/sec
indexOf end 69.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;