Run details:
Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4250.0 Iron Safari/537.36
Chrome 83
Windows 7
Desktop
4 years ago
Test name Executions per second
regex start 151.0 Ops/sec
startsWith 80.4 Ops/sec
regex end 136.4 Ops/sec
endsWith 81.4 Ops/sec
indexOf start 3370.7 Ops/sec
indexOf end 3327.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;