Run details:
Mozilla/5.0 (Linux; Android 10; Mi MIX 2S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
regex start 167.4 Ops/sec
startsWith 118.3 Ops/sec
regex end 159.8 Ops/sec
endsWith 116.2 Ops/sec
indexOf start 352.1 Ops/sec
indexOf end 87.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;