Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Linux
Desktop
9 months ago
Test name Executions per second
regex start 1055.2 Ops/sec
startsWith 745.6 Ops/sec
regex end 923.3 Ops/sec
endsWith 742.2 Ops/sec
indexOf start 24827.0 Ops/sec
indexOf end 24668.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;