Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/16.2b14898 Mobile/15E148 Safari/605.1.15
Mobile Safari 12
iOS 12.2
Mobile
5 years ago
Test name Executions per second
Regex 162.4 Ops/sec
.indexOf 103.4 Ops/sec
.startsWith 155.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Regex

  • .indexOf

  • .startsWith


;