Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54
Mac OS X 10.11.3
Other
7 years ago
Test name Executions per second
Number - same - == ..:: 4511662.5 Ops/sec
Number Vs. Object - === .: 4536765.5 Ops/sec
Number Vs. Object - == ..:: 2594390.5 Ops/sec
Number Vs. String - === .: 4535903.5 Ops/sec
Number Vs. String - == ..:: 2947268.5 Ops/sec
Number Vs. NaN - === .: 2968042.5 Ops/sec
Number Vs. NaN - == ..:: 2966525.8 Ops/sec
Undefined - === .: 3024181.8 Ops/sec
Undefined - == ..:: 2999033.0 Ops/sec
NaN - === .: 2976597.8 Ops/sec
NaN - == .: 2951426.2 Ops/sec
Null - === .: 8633524.0 Ops/sec
Null - == ..:: 8558722.0 Ops/sec
Object - dif - === .: 4592592.5 Ops/sec
Object - dif - == ..:: 4497851.0 Ops/sec
Object - clone - === .: 4619545.5 Ops/sec
Object - clone - == ..:: 4473111.0 Ops/sec
Object - same - === .: 4570683.5 Ops/sec
Object - same - == ..:: 4545550.5 Ops/sec
String - dif - === .: 4430245.5 Ops/sec
String - dif - == ..:: 4403390.0 Ops/sec
String - clone - === .: 4642538.0 Ops/sec
String - clone - == ..:: 4568062.5 Ops/sec
String - same - === .: 4569605.0 Ops/sec
String - same - == ..:: 4454415.5 Ops/sec
Number - dif - === .: 4626342.0 Ops/sec
Number - dif - == ..:: 4561720.0 Ops/sec
Number - clone - === .: 4464128.0 Ops/sec
Number - clone - == ..:: 4551332.5 Ops/sec
Number - same - === .: 4632943.0 Ops/sec
String Vs. Object - == ..:: 2862171.2 Ops/sec
String Vs. Object - === .: 4595442.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 - === .:


;