Run details:
Mozilla/5.0 (Linux; Android 9; SM-J610F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
regex start 32.7 Ops/sec
startsWith 15.1 Ops/sec
regex end 31.5 Ops/sec
endsWith 15.1 Ops/sec
indexOf start 54.1 Ops/sec
indexOf end 11.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;