Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Compare comparison with null or undefined (nested)
(version: 1)
Comparing performance of:
value === null vs value === undefined vs value !== null vs value !== undefined
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var value = { a: 123 }; var valueNull = null; var valueUndefined; var zz; function x() { function y() { function z() { function f() { function g() { function h() { function m() { function n() { function s() { function t() { function k() { function q() { function w() { function o() { function r() { zz.callNull = function() { value === null; valueNull === null; }; zz.callUndefined = function() { value === undefined; valueUndefined === null; }; zz.callNotNull = function() { value !== null; valueNull !== null; } zz.callNotUndefined = function() { value !== undefined; valueUndefined !== null; } } r(); } o(); } w(); } q(); } k(); } t(); } s(); } n(); } m(); } h(); } g(); } f(); } z(); } y(); } x(); function callNull() { zz.callNull(); } function callUndefined() { zz.callUndefined(); } function callNotNull() { zz.callNotNull(); } function callNotUndefined() { zz.callNotUndefined(); }
Tests:
value === null
callNull();
value === undefined
callUndefined();
value !== null
callNotNull();
value !== undefined
callNotUndefined();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
value === null
value === undefined
value !== null
value !== undefined
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!
Comments
Confirm delete:
Do you really want to delete benchmark?