Run details:
Mozilla/5.0 (X11; CrOS aarch64 13310.76.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.108 Safari/537.36
Chrome 85
Chrome OS 13310.76.0
Desktop
4 years ago
Test name Executions per second
regex start 109.8 Ops/sec
startsWith 63.8 Ops/sec
regex end 102.2 Ops/sec
endsWith 63.9 Ops/sec
indexOf start 225.0 Ops/sec
indexOf end 57.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;