Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Notebooks > Very simple benchmarking in Ruby

Very simple benchmarking in Ruby
Thread Tools
xonmac
Fresh-Faced Recruit
Join Date: Aug 2007
Status: Offline
Reply With Quote
Aug 28, 2007, 11:50 AM
 
Hi All,

Just to share the surprise of the day with you, and ask for a hint or so.

The story is very simple: I've got MacBook Pro 2,2-GHz Intel Core 2 Duo with 2Gb of RAM. My colleague has something older with a faster proc (2.3GHz) and a slower RAM bus. So, they should not be very different in performance, right? However, when we run this simple ruby script:

Code:
include Math time = Time.now 10000000.times {|i| a = sin(i)} puts Time.now - time
... my colleague's laptop does it within 4.4 seconds, while mine it takes 9.5!

Could please someone run this script to tell me what HIS result is? (For those new to Ruby, I can assure you I won't get your credit card number stolen by this script).

Any ideas what could cause such a performance difference?

Many thanks!
xonmac
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Aug 30, 2007, 07:40 PM
 
Did you do the test while using the same power source? (AC/Battery?) do you use the same energy saver settings? Same version of Mac OS X/Ruby? For info, my iBook G4 1.2ghz does it in 32 seconds sorry I don't have any MacBook Pro (yet!)
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 08:02 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,