Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Mac OS X 10.13
Desktop
3 years ago
Test name Executions per second
regex start 158.0 Ops/sec
startsWith 229.3 Ops/sec
regex end 156.6 Ops/sec
endsWith 227.2 Ops/sec
indexOf start 195.7 Ops/sec
indexOf end 194.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;