Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
if else
32.7M/s
return
31.8M/s
View exact numbers
  • if else: 32,666,728 ops/sec
  • return: 31,780,160 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
    if else
    return

    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/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
if else
14.0M/s
return
12.9M/s
View exact numbers
Test name Executions per second
if else 13,989,588 Ops/sec
return 12,869,427 Ops/sec