Run details:
Mozilla/5.0 (Linux; Android 10; HD1903) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.136 Mobile Safari/537.36
Chrome Mobile 79
Android
Mobile
4 years ago
Test name Executions per second
regex start 279.8 Ops/sec
startsWith 104.7 Ops/sec
regex end 263.9 Ops/sec
endsWith 106.3 Ops/sec
indexOf start 672.3 Ops/sec
indexOf end 131.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end