Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
regex start 224.0 Ops/sec
startsWith 296.1 Ops/sec
regex end 202.6 Ops/sec
endsWith 289.5 Ops/sec
indexOf start 239.7 Ops/sec
indexOf end 232.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end