Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36 OPR/59.1.2926.54067
Opera Mobile 59
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
regex start 53.8 Ops/sec
startsWith 24.7 Ops/sec
regex end 49.2 Ops/sec
endsWith 23.7 Ops/sec
indexOf start 91.9 Ops/sec
indexOf end 21.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;