Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Windows
Other
8 years ago
Test name Executions per second
String Replace No Compare 179087.3 Ops/sec
String Replace With Compare 238998.1 Ops/sec
Convert to Array 124368.9 Ops/sec
Remove From Array 903509.2 Ops/sec
Script Preparation code:
Tests:
  • String Replace No Compare

  • String Replace With Compare

  • Convert to Array

  • Remove From Array