Run details:
Mozilla/5.0 (Linux; Android 6.0.1; SM-G532M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
Chrome Mobile 92
Android 6.0.1
Mobile
one year ago
Test name Executions per second
regex start 45.4 Ops/sec
startsWith 33.1 Ops/sec
regex end 44.0 Ops/sec
endsWith 32.4 Ops/sec
indexOf start 76.8 Ops/sec
indexOf end 20.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;