From: "Andreas S." Date: 2012-07-01T20:31:59+09:00 Subject: Re: ruby performance Bartosz Dziewoński wrote in post #1066681: > Still. Benchmark this for me, would you: > >    1_000_000_000.times{|a| } > > It takes 103 seconds to run on my machine. The following code in C++, > compiled with -O0, takes four seconds. > > int main() > { >        for(int i=0; i<1000000000; i++){}; >        return 0; > } A loop with no payload is a completely useless benchmarking scenario. -- Posted via http://www.ruby-forum.com/.