Run details:
Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-N960N) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.36
Chrome Mobile 115
Android
Mobile
one year ago
Test name Executions per second
regex start 182.6 Ops/sec
startsWith 140.5 Ops/sec
regex end 197.8 Ops/sec
endsWith 182.1 Ops/sec
indexOf start 2736.0 Ops/sec
indexOf end 2693.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end