Run details:
Mozilla/5.0 (X11; CrOS x86_64 13904.66.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Chrome OS 13904.66.0
Desktop
3 years ago
Test name Executions per second
regex start 191.4 Ops/sec
startsWith 231.5 Ops/sec
regex end 172.5 Ops/sec
endsWith 232.4 Ops/sec
indexOf start 2636.0 Ops/sec
indexOf end 2692.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;