Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/25.0 Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
7 months ago
Test name Executions per second
regex start 525.5 Ops/sec
startsWith 1109.2 Ops/sec
regex end 486.3 Ops/sec
endsWith 1111.2 Ops/sec
indexOf start 7636.1 Ops/sec
indexOf end 7461.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end