Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
regex start 531.6 Ops/sec
startsWith 404.6 Ops/sec
regex end 451.0 Ops/sec
endsWith 398.5 Ops/sec
indexOf start 285.0 Ops/sec
indexOf end 283.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;