Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
one year ago
Test name Executions per second
strict equals 8623747.0 Ops/sec
ternary strict equals 8623747.0 Ops/sec
simple equality 8645873.0 Ops/sec
simple ternary equality 8635535.0 Ops/sec
truthy / falsy 8584345.0 Ops/sec
ternary truthy / falsy 8601838.0 Ops/sec
Script Preparation code:
Tests:
  • strict equals

  • ternary strict equals

  • simple equality

  • simple ternary equality

  • truthy / falsy

  • ternary truthy / falsy