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 - == ..:: 5895979.5 Ops/sec
Number Vs. Object - === .: 5867382.0 Ops/sec
Number Vs. Object - == ..:: 3170374.8 Ops/sec
Number Vs. String - === .: 6062998.5 Ops/sec
Number Vs. String - == ..:: 3450520.2 Ops/sec
Number Vs. NaN - === .: 3827901.8 Ops/sec
Number Vs. NaN - == ..:: 3824038.0 Ops/sec
Undefined - === .: 3869117.0 Ops/sec
Undefined - == ..:: 3875719.2 Ops/sec
NaN - === .: 3850863.0 Ops/sec
NaN - == .: 3863057.0 Ops/sec
Null - === .: 11392160.0 Ops/sec
Null - == ..:: 11123299.0 Ops/sec
Object - dif - === .: 5924237.0 Ops/sec
Object - dif - == ..:: 5721083.5 Ops/sec
Object - clone - === .: 5957117.0 Ops/sec
Object - clone - == ..:: 5870368.0 Ops/sec
Object - same - === .: 5976180.0 Ops/sec
Object - same - == ..:: 5884015.0 Ops/sec
String - dif - === .: 5887259.0 Ops/sec
String - dif - == ..:: 5372563.0 Ops/sec
String - clone - === .: 5954454.0 Ops/sec
String - clone - == ..:: 5866039.0 Ops/sec
String - same - === .: 5880338.0 Ops/sec
String - same - == ..:: 5971403.0 Ops/sec
Number - dif - === .: 5827159.5 Ops/sec
Number - dif - == ..:: 5956338.5 Ops/sec
Number - clone - === .: 5931365.0 Ops/sec
Number - clone - == ..:: 5846220.0 Ops/sec
Number - same - === .: 5853410.0 Ops/sec
String Vs. Object - == ..:: 3693173.0 Ops/sec
String Vs. Object - === .: 5939190.5 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 - === .:


;