Run details:
Mozilla/5.0 (Linux; Android 10; PH-1) 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 166.7 Ops/sec
startsWith 160.1 Ops/sec
regex end 160.2 Ops/sec
endsWith 162.4 Ops/sec
indexOf start 1876.7 Ops/sec
indexOf end 1799.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;