Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
Firefox 71
Ubuntu
Desktop
4 years ago
Test name Executions per second
regex start 516.8 Ops/sec
startsWith 279.4 Ops/sec
regex end 523.5 Ops/sec
endsWith 291.3 Ops/sec
indexOf start 237.6 Ops/sec
indexOf end 228.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;