Is a switch statement actually faster than an if statement? I ran the code below on Visual Studio 2010's