Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G930W8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Chrome Mobile 88
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
regex start 190.2 Ops/sec
startsWith 96.6 Ops/sec
regex end 177.4 Ops/sec
endsWith 97.4 Ops/sec
indexOf start 1947.7 Ops/sec
indexOf end 1963.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end