Script Preparation code:
Tests:
  • If statement

  • Ternary

  • Unary

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    If statement
    Ternary
    Unary

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11 on Windows
View result in a separate tab
Test name Executions per second
If statement 103361800.0 Ops/sec
Ternary 86083150.0 Ops/sec
Unary 24825680.0 Ops/sec