Re: switch statement

new topic     » goto parent     » topic index » view thread      » older message » newer message
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!!! grin

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu