Run details:
Mozilla/5.0 (Linux; Android 11; IN2023) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
4 years ago
Test name Executions per second
regex start 311.9 Ops/sec
startsWith 130.5 Ops/sec
regex end 294.4 Ops/sec
endsWith 130.8 Ops/sec
indexOf start 688.7 Ops/sec
indexOf end 73.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end