Run details:
Mozilla/5.0 (Linux; Android 10; Mi MIX 2S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
regex start 239.9 Ops/sec
startsWith 175.7 Ops/sec
regex end 230.3 Ops/sec
endsWith 157.5 Ops/sec
indexOf start 460.2 Ops/sec
indexOf end 101.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end