Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Windows
Desktop
3 years ago
Test name Executions per second
== 3665.9 Ops/sec
=== 3667.3 Ops/sec
== str 129.4 Ops/sec
=== str 3668.0 Ops/sec
== true 1740.3 Ops/sec
== null 3674.8 Ops/sec
=== null 3683.5 Ops/sec
=== true 3656.0 Ops/sec
== str with str 3682.4 Ops/sec
=== str with str 3673.0 Ops/sec
== str with number 34.2 Ops/sec
=== str with number 3691.7 Ops/sec
Tests:
  • ==

  • ===

  • == str

  • === str

  • == true

  • == null

  • === null

  • === true

  • == str with str

  • === str with str

  • == str with number

  • === str with number

  • obj to bool

  • bool to bool

  • arr to bool

  • str to bool

  • null to bool

  • null == undefined

  • undefined == null