Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36
Chrome 91
Mac OS X 10.12.6
Desktop
3 years ago
Test name Executions per second
regex start 360.8 Ops/sec
startsWith 474.8 Ops/sec
regex end 324.8 Ops/sec
endsWith 457.5 Ops/sec
indexOf start 6165.2 Ops/sec
indexOf end 6250.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end