If-else, Switch-case
Disadvantageous for CPU Branch Prediction, leading to overall compile performance degradation due to branch misprediction penalty
While switch-case can be less favorable than if-else when sequentially checking multiple conditions, switch-case is mutually exclusive and typically has no significant performance impact

Seonglae Cho