Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Mac OS X 10.14.6
Desktop
2 years ago
Test name Executions per second
regex start 292.6 Ops/sec
startsWith 648.6 Ops/sec
regex end 266.2 Ops/sec
endsWith 640.3 Ops/sec
indexOf start 5282.2 Ops/sec
indexOf end 5250.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;