Script Preparation code:
AخA
 
var nullValue = null;
var undefinedValue;
var trueValue = true;
Tests:
  • Nullish coalescing

     
    (nullValue ?? undefinedValue ?? trueValue);
  • Logical OR

     
    (nullValue || undefinedValue || trueValue);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Nullish coalescing
    Logical OR

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Nullish coalescing 94514312.0 Ops/sec
Logical OR 101892040.0 Ops/sec