Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
regex start 202.9 Ops/sec
startsWith 304.7 Ops/sec
regex end 245.6 Ops/sec
endsWith 325.4 Ops/sec
indexOf start 3452.3 Ops/sec
indexOf end 3463.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end