Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:70.0) Gecko/20100101 Firefox/70.0
Firefox 70
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
regex start 333.9 Ops/sec
startsWith 310.1 Ops/sec
regex end 357.8 Ops/sec
endsWith 298.4 Ops/sec
indexOf start 238.3 Ops/sec
indexOf end 238.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;