Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131
Windows
Desktop
11 days ago
Test name Executions per second
regex start 847.4 Ops/sec
startsWith 1990.9 Ops/sec
regex end 782.3 Ops/sec
endsWith 1976.7 Ops/sec
indexOf start 23075.1 Ops/sec
indexOf end 22762.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end