Run details:
Mozilla/5.0 (Linux; Android 9; Mi 9 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.119 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
regex start 185.2 Ops/sec
startsWith 88.6 Ops/sec
regex end 178.5 Ops/sec
endsWith 88.4 Ops/sec
indexOf start 411.4 Ops/sec
indexOf end 88.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;