Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
11 months ago
Test name Executions per second
regex start 462.3 Ops/sec
startsWith 490.9 Ops/sec
regex end 416.1 Ops/sec
endsWith 491.0 Ops/sec
indexOf start 7134.5 Ops/sec
indexOf end 7232.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end