Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.0 Chrome/80.0.3987.163 Safari/537.36
Chrome 80
Linux
Desktop
3 years ago
Test name Executions per second
regex start 100.8 Ops/sec
startsWith 141.1 Ops/sec
regex end 116.3 Ops/sec
endsWith 137.1 Ops/sec
indexOf start 1536.1 Ops/sec
indexOf end 4838.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end