Charles Miller wrote: > On 12:05 Sun 06 Feb , Michael Gebhart wrote: > >> Mono Code: >> >> using System; >> >> class Bench { >> public static void Main() { >> double d = 0; >> >> for (int i = 0; i < 1000000000; i++) { >> d = d + i; >> } >> >> Console.WriteLine(d); >> } >> >> Needs 10.8 Seconds. > > Ruby code: > > time ruby -e 'puts (999999999 ** 2 + 999999999) / 2' > 499999999500000000 > > real 0m0.034s > user 0m0.010s > sys 0m0.010s > > Proving once again that algorithm choice is far more important than > language choice. :) > > C > > > Wow! I didn't realize that ruby could be executed from the command line like that. That's awesome. darren