Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Fedora
Desktop
3 years ago
Test name Executions per second
regex start 176.4 Ops/sec
startsWith 189.7 Ops/sec
regex end 166.5 Ops/sec
endsWith 186.8 Ops/sec
indexOf start 4246.6 Ops/sec
indexOf end 4287.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;