Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Mac OS X 10.16
Desktop
4 years ago
Test name Executions per second
regex start 513.4 Ops/sec
startsWith 418.8 Ops/sec
regex end 455.9 Ops/sec
endsWith 418.4 Ops/sec
indexOf start 320.6 Ops/sec
indexOf end 321.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;