Run details:
Mozilla/5.0 (Linux; Android 11; MI 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
regex start 198.9 Ops/sec
startsWith 269.6 Ops/sec
regex end 190.1 Ops/sec
endsWith 270.3 Ops/sec
indexOf start 3218.2 Ops/sec
indexOf end 3181.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end