Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36
Chrome Mobile 129
Android
Mobile
2 months ago
Test name Executions per second
regex start 251.4 Ops/sec
startsWith 741.5 Ops/sec
regex end 236.9 Ops/sec
endsWith 737.2 Ops/sec
indexOf start 3626.3 Ops/sec
indexOf end 3896.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end