Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
regex start 810.1 Ops/sec
startsWith 1367.5 Ops/sec
regex end 728.8 Ops/sec
endsWith 1365.5 Ops/sec
indexOf start 17942.0 Ops/sec
indexOf end 17948.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end