Run details:
Mozilla/5.0 (Windows NT 10.0; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Windows
Desktop
one year ago
Test name Executions per second
regex start 316.8 Ops/sec
startsWith 360.8 Ops/sec
regex end 307.7 Ops/sec
endsWith 367.2 Ops/sec
indexOf start 291.3 Ops/sec
indexOf end 292.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end