Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Windows
Desktop
9 days ago
Test name Executions per second
regex start 899.4 Ops/sec
startsWith 1408.1 Ops/sec
regex end 902.4 Ops/sec
endsWith 1400.8 Ops/sec
indexOf start 16888.1 Ops/sec
indexOf end 18821.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;