Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
regex start 320.7 Ops/sec
startsWith 386.7 Ops/sec
regex end 276.3 Ops/sec
endsWith 380.1 Ops/sec
indexOf start 290.4 Ops/sec
indexOf end 287.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end