Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
regex start 256.6 Ops/sec
startsWith 345.7 Ops/sec
regex end 251.4 Ops/sec
endsWith 340.5 Ops/sec
indexOf start 276.1 Ops/sec
indexOf end 285.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;