If you have new Macbook Air 11 or 13 inch, do you mind running thisto see the speed?

W

winter heat

If you can run Ruby 1.9.2 on your Macbook Air 11 or 13 inch. I can go
to an Apple Store except to install Ruby 1.9.2, I will need a password
to do it... (actually, maybe I can just copy the binary of the Ruby
executable and use it there...)

------------------------------------------------------------

p RUBY_VERSION
p RUBY_DESCRIPTION if defined? RUBY_DESCRIPTION
n = 9_999_999
p n

t = 0; 1.upto(n) {|i| t += i if i%3==0 || i%5==0}; p t

------------------------------------------------------------

if on a 2.53GHz Intel Core 2 Duo

$ time ruby 1.rb
"1.9.2"
"ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]"
9999999
23333331666668

real 0m1.893s
user 0m1.809s
sys 0m0.012s
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top