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

Discussion in 'Ruby' started by winter heat, Nov 1, 2010.

  1. winter heat

    winter heat Guest

    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/.
    winter heat, Nov 1, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chris blackbur

    Dots Per Inch Problem

    chris blackbur, Dec 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    412
    =?Utf-8?B?V2ViTWF0cml4?=
    Dec 18, 2004
  2. Flexian_me
    Replies:
    0
    Views:
    333
    Flexian_me
    Feb 2, 2009
  3. Leslie Viljoen

    Hash characters on a Macbook

    Leslie Viljoen, Oct 1, 2006, in forum: Ruby
    Replies:
    1
    Views:
    70
    Martin Coxall
    Oct 1, 2006
  4. Elise Huard

    gem on macbook SLOW

    Elise Huard, Mar 13, 2008, in forum: Ruby
    Replies:
    5
    Views:
    125
    James Tucker
    Mar 16, 2008
  5. John Ladasky

    Python on a MacBook Pro (not my machine)

    John Ladasky, Oct 26, 2013, in forum: Python
    Replies:
    10
    Views:
    166
    Jake Angulo
    Nov 7, 2013
Loading...

Share This Page