Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Comparing null vs undefined
(version: 0)
Comparing performance of:
null strict vs undefined strict vs null loose vs undefined loose
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var x;
Tests:
null strict
var y = (x === null);
undefined strict
var y = (x === undefined);
null loose
var y = (x == null);
undefined loose
var y = (x === undefined);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
null strict
undefined strict
null loose
undefined loose
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Nullish coalescing vs logical OR operators
Typeof x === 'undefined' vs x === undefined (test without syntax error)
if(!variable) vs if(variable===undefined) performance
if(typeof <var> ===undefined) vs if(<var>)
void 0 vs undefined vs variable containing undefined
Comments
Confirm delete:
Do you really want to delete benchmark?