Tests:

Historical Performance Data aggregated from 92 community runs

Desktop Results:
Chrome 83 runs
Nullish coalescing (??) [short-circuit]
177.5M/s
Logical OR (||) [short-circuit]
175.0M/s
Nullish coalescing (??)
3.5M/s
Logical OR (||)
3.5M/s

Fastest: Nullish coalescing (??) [short-circuit] (50.3x faster)

View exact numbers
  • Nullish coalescing (??) [short-circuit]: 177,498,640 ops/sec
  • Logical OR (||) [short-circuit]: 174,967,824 ops/sec
  • Nullish coalescing (??): 3,541,100 ops/sec
  • Logical OR (||): 3,528,632 ops/sec
Firefox 9 runs
Nullish coalescing (??) [short-circuit]
1640.3M/s
Logical OR (||) [short-circuit]
1638.8M/s
Logical OR (||)
1584.8M/s
Nullish coalescing (??)
1107.6M/s

Fastest: Nullish coalescing (??) [short-circuit] (1.5x faster)

View exact numbers
  • Nullish coalescing (??) [short-circuit]: 1,640,271,232 ops/sec
  • Logical OR (||) [short-circuit]: 1,638,822,656 ops/sec
  • Logical OR (||): 1,584,768,128 ops/sec
  • Nullish coalescing (??): 1,107,588,736 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Nullish coalescing (??)
    Logical OR (||)
    Nullish coalescing (??) [short-circuit]
    Logical OR (||) [short-circuit]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Linux
View result in a separate tab
Logical OR (||)
232.7M/s
Nullish coalescing (??)
232.2M/s
Nullish coalescing (??) [short-circuit]
215.8M/s
Logical OR (||) [short-circuit]
213.7M/s
View exact numbers
Test name Executions per second
Logical OR (||) 232,733,984 Ops/sec
Nullish coalescing (??) 232,164,400 Ops/sec
Nullish coalescing (??) [short-circuit] 215,801,280 Ops/sec
Logical OR (||) [short-circuit] 213,673,376 Ops/sec