Run details:
Mozilla/5.0 (Linux; Android 9; SM-N950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
regex start 151.7 Ops/sec
startsWith 77.7 Ops/sec
regex end 141.8 Ops/sec
endsWith 78.3 Ops/sec
indexOf start 2658.0 Ops/sec
indexOf end 2590.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;