Script Preparation code:
Tests:

Historical Performance Data aggregated from 22 community runs

Desktop Results:
Chrome 16 runs
condition via `&&` statement
22.3M/s
condition via `if` statement
22.2M/s
View exact numbers
  • condition via `&&` statement: 22,346,856 ops/sec
  • condition via `if` statement: 22,223,508 ops/sec
Mobile Results:
Chrome 6 runs
condition via `&&` statement
6.1M/s
condition via `if` statement
6.1M/s
View exact numbers
  • condition via `&&` statement: 6,122,131 ops/sec
  • condition via `if` statement: 6,107,224 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
    condition via `if` statement
    condition via `&&` statement

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
condition via `if` statement
275.9M/s
condition via `&&` statement
254.9M/s
View exact numbers
Test name Executions per second
condition via `if` statement 275,936,128 Ops/sec
condition via `&&` statement 254,891,520 Ops/sec