Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
7 months ago
Test name Executions per second
regex start 815.7 Ops/sec
startsWith 1265.3 Ops/sec
regex end 733.3 Ops/sec
endsWith 1270.8 Ops/sec
indexOf start 17971.7 Ops/sec
indexOf end 17966.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end