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 - == ..: 4035847.0 Ops/sec
Number Vs. NaN - == ..: 2530448.5 Ops/sec
NaN - == ..: 2553129.0 Ops/sec
Undefined - == ..: 2538832.8 Ops/sec
Undefined - === .: 2572592.0 Ops/sec
NaN - == .: 2544147.0 Ops/sec
Null - === .: 8013832.0 Ops/sec
Number Vs. String - == ..: 2664800.5 Ops/sec
Number Vs. String - === .: 4268459.0 Ops/sec
Number Vs. Object - == ..: 1934668.4 Ops/sec
Number Vs. Object - === .: 4204441.5 Ops/sec
Object - dif - === ..: 4074735.8 Ops/sec
Object - dif - == ..: 4032735.5 Ops/sec
Object - clone - === .: 4136635.8 Ops/sec
Object - clone - == ..: 4033388.8 Ops/sec
Object - same - === .: 3688411.2 Ops/sec
Object - same - == ..: 2740887.5 Ops/sec
String - dif - === .: 3309943.0 Ops/sec
String - dif - == ..: 2492148.5 Ops/sec
String - clone - === .: 2653579.2 Ops/sec
String - clone - == ..: 3056590.8 Ops/sec
String - same - === .: 2907314.2 Ops/sec
String - same - == ..: 3852200.5 Ops/sec
Number - dif - === .: 4075455.8 Ops/sec
Number - dif - == ..: 4143110.5 Ops/sec
Number - clone - === .: 4105191.5 Ops/sec
Number - clone - == ..: 4086019.5 Ops/sec
Number - same - === .: 4142947.5 Ops/sec
Null - == ..: 7833176.5 Ops/sec
Number Vs. NaN - === .: 2495523.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 - === .:


;