Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
regex start 586.5 Ops/sec
startsWith 499.1 Ops/sec
regex end 550.2 Ops/sec
endsWith 502.6 Ops/sec
indexOf start 381.8 Ops/sec
indexOf end 376.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;