Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox 71
Mac OS X 10.15
Desktop
5 years ago
Test name Executions per second
regex start 566.8 Ops/sec
startsWith 441.8 Ops/sec
regex end 532.2 Ops/sec
endsWith 444.6 Ops/sec
indexOf start 327.4 Ops/sec
indexOf end 331.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end