Run details:
Mozilla/5.0 (Linux; Android 10; Mi 9T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
regex start 223.3 Ops/sec
startsWith 121.7 Ops/sec
regex end 210.8 Ops/sec
endsWith 121.2 Ops/sec
indexOf start 3553.7 Ops/sec
indexOf end 3561.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;