Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Windows
Desktop
14 days ago
Test name Executions per second
regex start 774.3 Ops/sec
startsWith 1282.7 Ops/sec
regex end 699.6 Ops/sec
endsWith 1255.1 Ops/sec
indexOf start 18193.2 Ops/sec
indexOf end 18148.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end