Run details:
Mozilla/5.0 (Linux; Android 9; SM-N950N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.110 Mobile Safari/537.36
Chrome Mobile 86
Android
Mobile
4 years ago
Test name Executions per second
regex start 125.2 Ops/sec
startsWith 54.4 Ops/sec
regex end 121.4 Ops/sec
endsWith 56.2 Ops/sec
indexOf start 307.1 Ops/sec
indexOf end 43.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;