Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/70.0.3538.75 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 70
iOS 12.1
Mobile
5 years ago
Test name Executions per second
Regex 67.1 Ops/sec
.indexOf 41.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Regex

  • .indexOf


;