From: Jian Lin Date: 2010-06-07T22:26:44+09:00 Subject: Re: How fast does your Ruby run? Chuck Remes wrote: > On Jun 6, 2010, at 6:21 AM, Jian Lin wrote: > >> Program changed a little: > > Someone is going to point this out sooner or later so it may as well be > me. > > Your "benchmark" doesn't test Ruby performance. It tests the performance > of the Enumerable#inject method. Each runtime will have different > results for running that one method but you can't really draw any > conclusions about overall runtime performance. It's a micro-benchmark > without a lot of usefulness. It is just to get an idea, really. How comprehensive do you expect the benchmark to be when the test is only 2 nested loops in 3 lines? -- Posted via http://www.ruby-forum.com/.