Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
typeof undefined vs. equals
(version: 1)
Comparing performance of:
typeof vs strict equal undefined
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
typeof
const foo = "hello"; const defined = typeof foo !== "undefined";
strict equal undefined
const foo = "hello"; const defined = foo !== undefined;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
typeof
strict equal undefined
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser/OS:
Chrome 138 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
typeof
68136920.0 Ops/sec
strict equal undefined
75254392.0 Ops/sec
Related benchmarks:
typeof Undefined vs ===
overwrite string vs null vs const two
Typeof x === 'undefined' vs x === undefined
typeof undefined vs strict equal vs equal
Typeof x === 'undefined' vs x === undefined (test without syntax error)
typeof undefined vs === undefined
if(typeof <var> ===undefined) vs if(<var>)
typeof-not-undefined
typeof !== undefined vs strict !equal
Comments
Confirm delete:
Do you really want to delete benchmark?