Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
Safari 10
Mac OS X 10.12.3
Other
7 years ago
Test name Executions per second
substring 5816799.5 Ops/sec
regex 6081994.0 Ops/sec
Script Preparation code:
Tests:
  • substring

  • regex