Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
undefined vs typeof vs !!
undefined vs typeof vs !!
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
void 0;
17.0M/s
!!
16.9M/s
typeof
16.6M/s
strict
8.9M/s
View exact numbers
Test name
Executions per second
✓
void 0;
17,024,472 Ops/sec
!!
16,881,138 Ops/sec
typeof
16,618,441 Ops/sec
strict
8,880,571 Ops/sec
Script Preparation code:
var value;
Tests:
strict
value !== undefined
typeof
typeof value !== "undefined"
!!
!!value
void 0;
value !== void 0;