Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 OPR/79.0.4143.72
Opera 79
Windows
Desktop
3 years ago
Test name Executions per second
regex start 384.9 Ops/sec
startsWith 365.7 Ops/sec
regex end 359.8 Ops/sec
endsWith 354.8 Ops/sec
indexOf start 7750.0 Ops/sec
indexOf end 7720.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;