Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
typeof undefined vs undefined equality check vs double-equal
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0
Browser:
Firefox 115
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
double-equal
5.6M/s
typeof
5.6M/s
equality
5.6M/s
View exact numbers
Test name
Executions per second
✓
double-equal
5,638,272 Ops/sec
typeof
5,586,318 Ops/sec
equality
5,584,100 Ops/sec
Script Preparation code:
window.obj = undefined
Tests:
equality
window.obj === undefined
typeof
typeof window.obj === 'undefined'
double-equal
window.obj == undefined