Switch outperforms HashMap on 10 values.