Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Windows 7
Desktop
one year ago
Test name Executions per second
regex start 273.7 Ops/sec
startsWith 656.2 Ops/sec
regex end 248.8 Ops/sec
endsWith 666.5 Ops/sec
indexOf start 4917.5 Ops/sec
indexOf end 4931.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end