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 225.8 Ops/sec
startsWith 663.7 Ops/sec
regex end 212.4 Ops/sec
endsWith 565.3 Ops/sec
indexOf start 4336.1 Ops/sec
indexOf end 4376.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end