Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Windows
Desktop
8 months ago
Test name Executions per second
regex start 773.9 Ops/sec
startsWith 1217.9 Ops/sec
regex end 725.7 Ops/sec
endsWith 1154.4 Ops/sec
indexOf start 16814.8 Ops/sec
indexOf end 18773.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end