Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
Ternary
40.4M/s
Function
40.1M/s
Assign
37.9M/s
Simple
23.7M/s

Fastest: Ternary (1.7x faster)

View exact numbers
  • Ternary: 40,355,560 ops/sec
  • Function: 40,129,388 ops/sec
  • Assign: 37,945,760 ops/sec
  • Simple: 23,692,358 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
    Assign
    Function
    Simple

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Chrome OS 14541.0.0
View result in a separate tab
Function
48.9M/s
Assign
43.7M/s
Ternary
43.7M/s
Simple
26.2M/s
View exact numbers
Test name Executions per second
Function 48,912,936 Ops/sec
Assign 43,712,152 Ops/sec
Ternary 43,662,144 Ops/sec
Simple 26,153,862 Ops/sec