Run details:
Mozilla/5.0 (Linux; Android 9; CMR-AL09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36
Chrome 88
Android
Desktop
3 years ago
Test name Executions per second
regex start 97.1 Ops/sec
startsWith 47.7 Ops/sec
regex end 93.4 Ops/sec
endsWith 47.7 Ops/sec
indexOf start 943.6 Ops/sec
indexOf end 942.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;