Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
10 months ago
Test name Executions per second
regex start 375.5 Ops/sec
startsWith 787.0 Ops/sec
regex end 312.1 Ops/sec
endsWith 720.9 Ops/sec
indexOf start 6096.7 Ops/sec
indexOf end 6145.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end