Run details:
Mozilla/5.0 (Linux; Android 8.0.0; LG-H870 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36
Chrome Mobile 69
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
regex start 139.6 Ops/sec
startsWith 58.5 Ops/sec
regex end 113.7 Ops/sec
endsWith 50.5 Ops/sec
indexOf start 111.1 Ops/sec
indexOf end 61.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end