Script Preparation code:
Tests:

Historical Performance Data aggregated from 14 community runs

Desktop Results:
Chrome 14 runs
ternary operator
27.9M/s
&& and ||
27.6M/s
View exact numbers
  • ternary operator: 27,917,616 ops/sec
  • && and ||: 27,627,150 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
    ternary operator
    && and ||

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0
Chrome 140 on Windows
View result in a separate tab
ternary operator
182.9M/s
&& and ||
171.3M/s
View exact numbers
Test name Executions per second
ternary operator 182,917,952 Ops/sec
&& and || 171,304,192 Ops/sec