Test case name | Result |
---|---|
If - Else | |
Switch - Case | |
Object literals | |
ternary-operator |
Test name | Executions per second |
---|---|
If - Else | 15087134.0 Ops/sec |
Switch - Case | 28798440.0 Ops/sec |
Object literals | 28340026.0 Ops/sec |
ternary-operator | 14965286.0 Ops/sec |