Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Mac OS X 10.10.3
Other
8 years ago
Test name Executions per second
String Replace No Compare 192213.8 Ops/sec
String Replace With Compare 493866.5 Ops/sec
Convert to Array 528108.5 Ops/sec
Remove From Array 1590297.6 Ops/sec
Script Preparation code:
Tests:
  • String Replace No Compare

  • String Replace With Compare

  • Convert to Array

  • Remove From Array