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

     
    var c = a || b;
  • array

     
    var d = [a, b].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: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
or operator 11235165.0 Ops/sec
array 10782284.0 Ops/sec