Run details:
Mozilla/5.0 (Linux; Android 11; SM-A505FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.66 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
regex start 145.6 Ops/sec
startsWith 103.8 Ops/sec
regex end 135.8 Ops/sec
endsWith 108.6 Ops/sec
indexOf start 275.2 Ops/sec
indexOf end 78.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end