Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Firefox 143
Windows
Desktop
7 months ago
Test name Executions per second
regex start 900.7 Ops/sec
startsWith 20402.9 Ops/sec
regex end 796.1 Ops/sec
endsWith 19404.3 Ops/sec
indexOf start 19849.4 Ops/sec
indexOf end 19471.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end