Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36
Chrome Mobile 127
Android
Mobile
4 months ago
Test name Executions per second
regex start 344.5 Ops/sec
startsWith 820.3 Ops/sec
regex end 339.3 Ops/sec
endsWith 761.7 Ops/sec
indexOf start 4124.1 Ops/sec
indexOf end 3241.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end