Run details:
Mozilla/5.0 (X11; CrOS x86_64 13597.66.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.109 Safari/537.36
Chrome 88
Chrome OS 13597.66.0
Desktop
3 years ago
Test name Executions per second
regex start 266.4 Ops/sec
startsWith 333.2 Ops/sec
regex end 246.9 Ops/sec
endsWith 322.2 Ops/sec
indexOf start 4261.8 Ops/sec
indexOf end 4168.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end