Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > If you have new Macbook Air 11 or 13 inch, do you mind running thisto see the speed?

Reply
Thread Tools

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

 
 
winter heat
Guest
Posts: n/a
 
      11-01-2010
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

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nike air force one, air force 1, air force one low cut, air force one abdul_razak@indiatimes.com Digital Photography 2 12-31-2008 04:29 PM
Nike Air Force Ones,Air Force One Air Force One-1 lky52193@gmail.com Computer Support 0 01-17-2008 04:40 PM
MacBook Air Launch Ian Front Page News 0 01-17-2008 03:29 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:46 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52112@gmail.com Digital Photography 0 01-15-2008 04:34 PM



Advertisments