From: Jeff Moore on 7 Jun 2010 15:19 Jian Lin wrote: > How fast does your Ruby run? > > I got 53648 iterations per second running the following program, > on an Intel 3.2 GHz HT, Win XP machine: > > -------- > > C:\> ruby calculate.rb > 55 > > Ruby 1.8.6 patch 0 on i386-mswin32 > It took 18.64 seconds to run. 53648 iterations per second. > Running the original code: Ruby 1.9.1 patch 378 on x86_64-linux It took 1.277456379 seconds to run. 782805 iterations per second. Compiled on a Phenom II X4 955 with gcc 4.4.1 with -O3 -mtune=native OS: Ubuntu 9.10 -- Posted via http://www.ruby-forum.com/.
First
|
Prev
|
Pages: 1 2 Prev: [ANN] clogger 0.5.0 - body.to_path forwarding Next: libruby-nntp doesn't exist any more ? |