Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
regex start 522.0 Ops/sec
startsWith 401.1 Ops/sec
regex end 490.0 Ops/sec
endsWith 403.2 Ops/sec
indexOf start 289.6 Ops/sec
indexOf end 286.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;