Run details:
Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/18.0.130791545 Mobile/13G36 Safari/600.1.4
Mobile Safari 9
iOS 9.3.5
iPad
8 years ago
Test name Executions per second
String Replace No Compare 330428.9 Ops/sec
String Replace With Compare 458181.5 Ops/sec
Convert to Array 275174.3 Ops/sec
Remove From Array 1011646.9 Ops/sec
Script Preparation code:
Tests:
  • String Replace No Compare

  • String Replace With Compare

  • Convert to Array

  • Remove From Array