Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Mac OS X 10.15
Desktop
11 months ago
Test name Executions per second
regex start 429.4 Ops/sec
startsWith 446.7 Ops/sec
regex end 398.0 Ops/sec
endsWith 444.5 Ops/sec
indexOf start 7303.5 Ops/sec
indexOf end 8177.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;