From: botp Date: 2012-02-03T12:52:23+09:00 Subject: Re: Basic Ruby performance On Fri, Feb 3, 2012 at 6:20 AM, Dmitry Nikiforov wrote: > Ruby: > > for a in 0..1E8 >        a*2 > end omg, careful w big numbers in ruby.. > x=Time.now();for a in 0..1E3;end; puts(Time.now-x) 0.000380635 > x=Time.now();for a in 0..1E4;end; puts(Time.now-x) 0.00373148 > x=Time.now();for a in 0..1E5;end; puts(Time.now-x) 0.029043426 > x=Time.now();for a in 0..1E6;end; puts(Time.now-x) 0.201745265 > x=Time.now();for a in 0..1E7;end; puts(Time.now-x) 1.939860867 > x=Time.now();for a in 0..1E8;end; puts(Time.now-x) 19.276653266 note, the jump... best regards -botp