Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
Chrome Mobile 126
Android
Mobile
5 months ago
Test name Executions per second
regex start 224.5 Ops/sec
startsWith 618.8 Ops/sec
regex end 213.2 Ops/sec
endsWith 617.0 Ops/sec
indexOf start 3125.2 Ops/sec
indexOf end 3007.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end