Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0
Firefox 144
Windows
Desktop
6 months ago
Test name Executions per second
regex start 729.1 Ops/sec
startsWith 18258.1 Ops/sec
regex end 818.8 Ops/sec
endsWith 18376.8 Ops/sec
indexOf start 18439.0 Ops/sec
indexOf end 18078.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end