Run details:
Mozilla/5.0 (Linux; Android 11; NX659J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
regex start 315.8 Ops/sec
startsWith 372.2 Ops/sec
regex end 269.3 Ops/sec
endsWith 331.8 Ops/sec
indexOf start 4245.7 Ops/sec
indexOf end 4392.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end


;