Run details:
Mozilla/5.0 (Linux; Android 10; Pixel XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
regex start 174.6 Ops/sec
startsWith 44.9 Ops/sec
regex end 152.6 Ops/sec
endsWith 41.6 Ops/sec
indexOf start 284.5 Ops/sec
indexOf end 44.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end