Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
regex start 567.1 Ops/sec
startsWith 437.6 Ops/sec
regex end 510.7 Ops/sec
endsWith 434.7 Ops/sec
indexOf start 326.1 Ops/sec
indexOf end 327.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;