Run details:
Mozilla/5.0 (Linux; Android 10; Nokia 7.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
regex start 118.6 Ops/sec
startsWith 88.1 Ops/sec
regex end 113.7 Ops/sec
endsWith 88.1 Ops/sec
indexOf start 206.9 Ops/sec
indexOf end 2.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end