Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.14.6
Desktop
2 years ago
Test name Executions per second
regex start 290.0 Ops/sec
startsWith 386.9 Ops/sec
regex end 268.7 Ops/sec
endsWith 381.3 Ops/sec
indexOf start 5385.2 Ops/sec
indexOf end 5357.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;