Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Chrome 59
Mac OS X 10.12.5
Other
7 years ago
Test name Executions per second
With RegEx 307.5 Ops/sec
With IndexOf 193.0 Ops/sec
Script Preparation code:
Tests:
  • With RegEx

  • With IndexOf


;