Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Windows 7
Desktop
3 years ago
Test name Executions per second
regex start 586.8 Ops/sec
startsWith 384.5 Ops/sec
regex end 590.2 Ops/sec
endsWith 383.3 Ops/sec
indexOf start 263.2 Ops/sec
indexOf end 260.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end