Nullish equality check

Benchmark created on


Setup

const foo = 1e10
const bar = null

Test runner

Ready to run.

Testing in
TestOps/sec
Nullish
const equals = (foo == null)
ready
Separate null/undef checks
const equals = (foo === null || foo === undefined)
ready
Nullish - with null value
const equals = (bar == null)
ready
Separate checks - with null value
const equals = (bar === null || bar === undefined)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.