Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
regex start 379.8 Ops/sec
startsWith 346.7 Ops/sec
regex end 369.0 Ops/sec
endsWith 345.0 Ops/sec
indexOf start 269.1 Ops/sec
indexOf end 269.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end