Run details:
Mozilla/5.0 (Linux; Android 12; SM-N9750) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
regex start 270.9 Ops/sec
startsWith 350.5 Ops/sec
regex end 259.6 Ops/sec
endsWith 351.9 Ops/sec
indexOf start 2378.4 Ops/sec
indexOf end 2472.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end