forked from: [最適化 Tips] if ... else と switch と 三項演算 での処理速度の違い

三項演算も追加してみた。普通三項演算で10個も入れ子にしたりしないとは思いますが…