Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/82.0.4068.4 Chrome/82.0.4068.4 Safari/537.36
Chromium 82
Ubuntu
Desktop
4 years ago
Test name Executions per second
regex start 282.1 Ops/sec
startsWith 334.3 Ops/sec
regex end 259.0 Ops/sec
endsWith 324.9 Ops/sec
indexOf start 7029.7 Ops/sec
indexOf end 6686.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;