Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Linux
Desktop
4 years ago
Test name Executions per second
regex start 471.4 Ops/sec
startsWith 276.8 Ops/sec
regex end 478.3 Ops/sec
endsWith 268.2 Ops/sec
indexOf start 232.2 Ops/sec
indexOf end 232.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;