Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
regex start 192.7 Ops/sec
startsWith 120.8 Ops/sec
regex end 183.4 Ops/sec
endsWith 119.9 Ops/sec
indexOf start 418.1 Ops/sec
indexOf end 95.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end