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

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