Script Preparation code:
x
 
var a = false, b = false, c = false, d = true;
Tests:
  • or operator

     
    var c = a || b || c || d;
  • array

     
    var d = [a, b, c, d].find((element) => element);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    or operator
    array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
or operator 7828945.5 Ops/sec
array 8686412.0 Ops/sec