Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
regex start 119.4 Ops/sec
startsWith 56.4 Ops/sec
regex end 114.7 Ops/sec
endsWith 57.7 Ops/sec
indexOf start 231.6 Ops/sec
indexOf end 53.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end