Run details:
Mozilla/5.0 (X11; CrOS x86_64 13597.94.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.186 Safari/537.36
Chrome 88
Chrome OS 13597.94.0
Desktop
3 years ago
Test name Executions per second
regex start 148.9 Ops/sec
startsWith 180.5 Ops/sec
regex end 135.4 Ops/sec
endsWith 177.3 Ops/sec
indexOf start 2355.9 Ops/sec
indexOf end 2262.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end