1. Took 314ms | Average: 0.000000 ms pertime
2. Took 507ms | Average: 0.000000 ms pertime
V: 8
I think the last one was slower because the compiler has to "expand" the cases, which results to aprox 1500 cases... So you are comparing 3 ifs with 1500cases... Correct me if I am wrong.