Run details:
Mozilla/5.0 (Linux; Android 12; SM-A526B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
regex start 255.9 Ops/sec
startsWith 232.8 Ops/sec
regex end 241.3 Ops/sec
endsWith 233.6 Ops/sec
indexOf start 3433.3 Ops/sec
indexOf end 3241.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end