Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows 7
Desktop
2 years ago
Test name Executions per second
regex start 437.5 Ops/sec
startsWith 351.6 Ops/sec
regex end 406.5 Ops/sec
endsWith 343.3 Ops/sec
indexOf start 926.3 Ops/sec
indexOf end 177.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;