Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
Chrome Mobile 125
Android
Mobile
6 months ago
Test name Executions per second
regex start 454.2 Ops/sec
startsWith 1098.5 Ops/sec
regex end 424.1 Ops/sec
endsWith 1093.4 Ops/sec
indexOf start 8367.7 Ops/sec
indexOf end 8836.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end