Run details:
Mozilla/5.0 (Linux; Android 10; SM-N975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.111 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
regex start 235.1 Ops/sec
startsWith 119.2 Ops/sec
regex end 216.7 Ops/sec
endsWith 117.1 Ops/sec
indexOf start 505.8 Ops/sec
indexOf end 95.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end