Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Windows
Desktop
one year ago
Test name Executions per second
regex start 106.1 Ops/sec
startsWith 132.0 Ops/sec
regex end 102.1 Ops/sec
endsWith 128.3 Ops/sec
indexOf start 108.2 Ops/sec
indexOf end 108.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end