Run details:
Mozilla/5.0 (Linux; Android 12; SM-N9750) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
regex start 289.2 Ops/sec
startsWith 385.7 Ops/sec
regex end 277.7 Ops/sec
endsWith 387.9 Ops/sec
indexOf start 4398.0 Ops/sec
indexOf end 4858.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end