Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
8 months ago
Test name Executions per second
regex start 295.2 Ops/sec
startsWith 637.4 Ops/sec
regex end 258.3 Ops/sec
endsWith 527.4 Ops/sec
indexOf start 4218.1 Ops/sec
indexOf end 3978.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end