Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
3 months ago
Test name Executions per second
regex start 482.4 Ops/sec
startsWith 913.8 Ops/sec
regex end 444.6 Ops/sec
endsWith 910.1 Ops/sec
indexOf start 12946.8 Ops/sec
indexOf end 12637.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end