Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
void 0 vs undefined vs variable containing undefined
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0
Browser:
Firefox 148
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
undefined
964218944.0 Ops/sec
void 0
971742080.0 Ops/sec
constant containing undefined
965942080.0 Ops/sec
Script Preparation code:
var a = 1, u = void 0;
Tests:
undefined
if(a===undefined)console.log(a);
void 0
if(a===void 0)console.log(a);
constant containing undefined
if(a===u)console.log(a);