Re: switch statement
- Posted by euphoric (admin) Mar 25, 2009
- 1340 views
jeremy said...
...I just did a benchmark, here are the results (I changed the puts to setting a message as not to have all sorts of IO hiding the timing):
C:\Develop>exwc switchifbench.ex bench_switch: 0.063 bench_if_equal: 0.187 bench_if_find: 0.344
Okay, now I remember why it was a good idea. SPEEEEEEEEEED!!!