Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54
Mac OS X 10.12.1
Other
7 years ago
Test name Executions per second
Number - same - == 3911146.5 Ops/sec
Object - clone - === 4023178.8 Ops/sec
Object - clone - == 3902298.8 Ops/sec
Object - same - === 2917768.2 Ops/sec
Object - same - == 4011850.2 Ops/sec
String - dif - === 3963194.2 Ops/sec
String - dif - == 3922318.0 Ops/sec
String - clone - === 4006909.0 Ops/sec
String - clone - == 4009790.0 Ops/sec
String - same - === 4136353.0 Ops/sec
String - same - == 4054520.5 Ops/sec
Number - dif - === 3962237.2 Ops/sec
Number - dif - == 4059184.2 Ops/sec
Number - clone - === 4076188.8 Ops/sec
Number - clone - == 4076331.2 Ops/sec
Number - same - === 4105872.5 Ops/sec
Object - dif - == 4006608.8 Ops/sec
Object - dif - === 4008588.0 Ops/sec
Script Preparation code:
Tests:
  • Number - same - == ..::

  • Number - same - === .:

  • Number - clone - == ..::

  • Number - clone - === .:

  • Number - dif - == ..::

  • Number - dif - === .:

  • String - same - == ..::

  • String - same - === .:

  • String - clone - == ..::

  • String - clone - === .:

  • String - dif - == ..::

  • String - dif - === .:

  • Object - same - == ..::

  • Object - same - === .:

  • Object - clone - == ..::

  • Object - clone - === .:

  • Object - dif - == ..::

  • Object - dif - === .:

  • Null - == ..::

  • Null - === .:

  • NaN - == .:

  • NaN - === .:

  • Undefined - == ..::

  • Undefined - === .:

  • Number Vs. NaN - == ..::

  • Number Vs. NaN - === .:

  • Number Vs. String - == ..::

  • Number Vs. String - === .:

  • Number Vs. Object - == ..::

  • Number Vs. Object - === .:

  • String Vs. Object - == ..::

  • String Vs. Object - === .:


;