Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Firefox 143
Windows
Desktop
8 months ago
Test name Executions per second
regex start 824.1 Ops/sec
startsWith 20600.7 Ops/sec
regex end 754.2 Ops/sec
endsWith 18996.0 Ops/sec
indexOf start 18722.6 Ops/sec
indexOf end 19195.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end