Run details:
Mozilla/5.0 (Linux; Android 6.0.1; Plus E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36
Chrome Mobile 86
Android 6.0.1
Mobile
3 years ago
Test name Executions per second
regex start 66.8 Ops/sec
startsWith 22.7 Ops/sec
regex end 67.1 Ops/sec
endsWith 32.2 Ops/sec
indexOf start 86.0 Ops/sec
indexOf end 18.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;