Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Windows
Desktop
one year ago
Test name Executions per second
strict equals 2046083.6 Ops/sec
ternary strict equals 1566457.4 Ops/sec
simple equality 1444472.8 Ops/sec
simple ternary equality 1580259.5 Ops/sec
truthy / falsy 1486927.5 Ops/sec
ternary truthy / falsy 1689381.2 Ops/sec
Script Preparation code:
Tests:
  • strict equals

  • ternary strict equals

  • simple equality

  • simple ternary equality

  • truthy / falsy

  • ternary truthy / falsy