From: Marnen Laibow-Koser Date: 2009-11-16T00:25:58+09:00 Subject: Re: Trajectories Shot (Piotr Szotkowski) wrote: [...] > When the time results are so small they don’t really mean anything: > > shot@devielle:~$ ruby -v > ruby 1.9.1p243 (2009-07-16) [x86_64-linux] > > shot@devielle:~$ time ruby -rbigdecimal -e "10_000_000.times{x = > BigDecimal.new('3.5') * BigDecimal.new('4.2')}" > real 0m50.280s > user 0m47.719s > sys 0m0.112s [...] Yeah, I tried longer runs as well and saw larger differences. I question the applicability of those to actual programs, though; even computationally intensive programs are going to be spending lots of time doing things other than number crunching. Besides, what good are fast calculations if they're wrong? > > — Shot Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.