Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Undefined testing including !
(version: 0)
Comparing performance of:
typeof x === "undefined" vs x === undefined vs x == undefined vs x == null vs !x
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var x;
Tests:
typeof x === "undefined"
typeof x === "undefined"
x === undefined
x === undefined
x == undefined
x == undefined
x == null
x == null
!x
!x
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
typeof x === "undefined"
x === undefined
x == undefined
x == null
!x
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:
Return true vs empty body
Undefined testing
undefined checking
is variable not undefined? typeof variable !== "undefined" vs variable !== undefined
testtesttesttesttestv
Comments
Confirm delete:
Do you really want to delete benchmark?