Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
Chrome 69
Linux
Desktop
4 years ago
Test name Executions per second
regex start 259.4 Ops/sec
startsWith 166.8 Ops/sec
regex end 249.9 Ops/sec
endsWith 167.4 Ops/sec
indexOf start 478.1 Ops/sec
indexOf end 105.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;