Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
10 days ago
Test name Executions per second
startsWith 48.5 Ops/sec
endsWith 49.9 Ops/sec
Regex start 234.6 Ops/sec
Regex end 213.8 Ops/sec
indexOf start 44.5 Ops/sec
indexOf end 25.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • startsWith

  • endsWith

  • Regex start

  • Regex end

  • indexOf start

  • indexOf end


;