Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
Chrome 79
Linux
Desktop
4 years ago
Test name Executions per second
regex start 200.0 Ops/sec
startsWith 111.7 Ops/sec
regex end 212.8 Ops/sec
endsWith 121.8 Ops/sec
indexOf start 572.2 Ops/sec
indexOf end 127.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end