Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36
Chrome 103
Windows
Desktop
one year ago
Test name Executions per second
regex start 538.8 Ops/sec
startsWith 1154.8 Ops/sec
regex end 457.5 Ops/sec
endsWith 1151.9 Ops/sec
indexOf start 13016.4 Ops/sec
indexOf end 12979.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end