Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36
Chrome 53
Linux
Other
8 years ago
Test name Executions per second
String Replace No Compare 602519.8 Ops/sec
String Replace With Compare 1431992.2 Ops/sec
Convert to Array 1535786.8 Ops/sec
Remove From Array 3920177.5 Ops/sec
Script Preparation code:
Tests:
  • String Replace No Compare

  • String Replace With Compare

  • Convert to Array

  • Remove From Array