Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Windows 7
Desktop
5 years ago
Test name Executions per second
regex start 240.8 Ops/sec
startsWith 233.8 Ops/sec
regex end 210.4 Ops/sec
endsWith 224.0 Ops/sec
indexOf start 175.8 Ops/sec
indexOf end 188.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end