Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
if else
2.4M/s
Lookup
2.1M/s

Fastest: if else (1.2x faster)

View exact numbers
  • if else : 2,396,363 ops/sec
  • Lookup: 2,063,204 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
    Lookup
    if else

    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; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Windows
View result in a separate tab
if else
5.7M/s
Lookup
4.6M/s
View exact numbers
Test name Executions per second
if else 5,665,081 Ops/sec
Lookup 4,586,976 Ops/sec