Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36
Chrome 88
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
regex start 374.4 Ops/sec
startsWith 449.7 Ops/sec
regex end 340.2 Ops/sec
endsWith 446.5 Ops/sec
indexOf start 6367.7 Ops/sec
indexOf end 6446.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;