Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
lodash isUndefined vs typeof === undefined (take 3)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Browser:
Safari 18
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
lodash.isUndefined
690.8M/s
triple equals
636.4M/s
typeof
633.4M/s
View exact numbers
Test name
Executions per second
✓
lodash.isUndefined
690,808,768 Ops/sec
triple equals
636,395,264 Ops/sec
typeof
633,361,088 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var foo;
Tests:
lodash.isUndefined
if (_.isUndefined(foo)) { foo; }
triple equals
if (foo === undefined) { foo; }
typeof
if (typeof foo === 'undefined') { foo; }