Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Chrome 76
Mac OS X 10.13.5
Desktop
5 years ago
Test name Executions per second
regex start 360.3 Ops/sec
startsWith 142.6 Ops/sec
regex end 327.1 Ops/sec
endsWith 136.6 Ops/sec
indexOf start 721.8 Ops/sec
indexOf end 135.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;