Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Nullish coalescing V.S. Logic or operator (native)
(version: 0)
Comparing performance of:
Nullish coalescing vs Logic or operator
Created:
4 years ago
by:
Guest
Jump to the latest result
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
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Nullish coalescing
Logic or operator
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Browser/OS:
Chrome 143 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Nullish coalescing
4064.0 Ops/sec
Logic or operator
4119.4 Ops/sec
Related benchmarks:
Nullish coalescing vs logical OR operators
Nullish coalescing V.S. if (native)
Nullish coalescing vs if-chains
Nullish coalescing, logical OR
Comments
Confirm delete:
Do you really want to delete benchmark?