Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Windows
Desktop
11 months ago
Test name Executions per second
regex start 901.4 Ops/sec
startsWith 693.5 Ops/sec
regex end 752.3 Ops/sec
endsWith 682.7 Ops/sec
indexOf start 18603.9 Ops/sec
indexOf end 19065.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end