I wouldn't be surprised if the compiler turned the switch statement into the array lookup on its own.

You could profile it, but that doesn't tell you much, because modern CPUs are so complicated...