Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Nullish coalescing V.S. Logic or operator (native)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Browser:
Firefox 131
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Nullish coalescing
3409.9 Ops/sec
Logic or operator
3419.1 Ops/sec
Tests:
Nullish coalescing
let v = null for (let i = 1; i < 1e6; i++) v = v ?? null
Logic or operator
let v = null for (let i = 1; i < 1e6; i++) v = v || null