Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
regex start 248.6 Ops/sec
startsWith 600.8 Ops/sec
regex end 225.0 Ops/sec
endsWith 575.6 Ops/sec
indexOf start 3052.6 Ops/sec
indexOf end 3075.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end