Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15
Safari 14
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
regex start 179.9 Ops/sec
startsWith 205.0 Ops/sec
regex end 131.1 Ops/sec
endsWith 202.1 Ops/sec
indexOf start 137.0 Ops/sec
indexOf end 134.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;