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 342.5 Ops/sec
startsWith 810.1 Ops/sec
regex end 326.5 Ops/sec
endsWith 817.6 Ops/sec
indexOf start 3617.8 Ops/sec
indexOf end 3604.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end