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
Go 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:
one year 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
strict equal undefined
75.3M/s
typeof
68.1M/s
View exact numbers
Test name
Executions per second
✓
strict equal undefined
75,254,392 Ops/sec
typeof
68,136,920 Ops/sec
Related benchmarks
typeof undefined vs strict equal vs equal
Typeof x === 'undefined' vs x === undefined (test without syntax error)
typeof !== undefined vs strict !equal
Comments
Confirm delete:
Do you really want to delete benchmark?