Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Mac OS X 10.15
Desktop
6 months ago
Test name Executions per second
regex start 803.7 Ops/sec
startsWith 1341.4 Ops/sec
regex end 709.5 Ops/sec
endsWith 1338.7 Ops/sec
indexOf start 17853.3 Ops/sec
indexOf end 17749.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end