Run details:
Mozilla/5.0 (Linux; Android 11; Redmi Note 9 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
regex start 222.6 Ops/sec
startsWith 209.4 Ops/sec
regex end 214.2 Ops/sec
endsWith 208.1 Ops/sec
indexOf start 2763.3 Ops/sec
indexOf end 2802.9 Ops/sec
includes 2807.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • regex start

  • startsWith

  • regex end

  • endsWith

  • indexOf start

  • indexOf end

  • includes