[R-SIG-Mac] Old Dell running faster than new MacBook
Rob Goedman
goedman at mac.com
Sun Oct 26 00:42:53 CEST 2008
A 2.6 MacBook Pro, 2G, just to check differences between R and R.app.
Not completely fair, R.app runs in 64 bit, R in Terminal in 32 bit.
Stiil, always interesting to check now and then.
Rob
R.app (64 bit):
=====
> indexGenerator(0.08,0.15,30,100)
[1] Simulation 1 of 100 done.
[1] Simulation 2 of 100 done.
...
[1] Simulation 99 of 100 done.
[1] Simulation 100 of 100 done.
user system elapsed
8.266 0.216 8.631
(iGen comments out the print statement.)
> iGen(0.08,0.15,30,100)
user system elapsed
8.219 0.220 8.635
> iGen(0.08,0.15,30,100)
user system elapsed
8.202 0.227 8.567
> indexGenerator(0.08,0.15,30,1000)
[1] Simulation 1 of 1000 done.
[1] Simulation 2 of 1000 done.
...
[1] Simulation 999 of 1000 done.
[1] Simulation 1000 of 1000 done.
user system elapsed
83.898 1.443 98.678
>
(iGen again.)
> iGen(0.08,0.15,30,1000)
user system elapsed
81.026 1.306 82.828
> iGen(0.08,0.15,30,1000)
user system elapsed
80.688 1.311 82.535
>
R in Terminal (32 bit):
===========
> indexGenerator(0.08, 0.15, 30, 100)
[1] Simulation 1 of 100 done.
[1] Simulation 2 of 100 done.
...
[1] Simulation 99 of 100 done.
[1] Simulation 100 of 100 done.
user system elapsed
9.107 0.099 9.283
>
> indexGenerator(0.08, 0.15, 30, 100)
[1] Simulation 1 of 100 done.
[1] Simulation 2 of 100 done.
...
[1] Simulation 999 of 1000 done.
[1] Simulation 1000 of 1000 done.
user system elapsed
91.582 1.199 94.543
> indexGenerator(0.08, 0.15, 30, 100)
[1] Simulation 1 of 1000 done.
[1] Simulation 2 of 1000 done.
...
[1] Simulation 999 of 1000 done.
[1] Simulation 1000 of 1000 done.
user system elapsed
92.544 3.551 101.139
>
I did do some other work during this last run in the Terminal.
In fact TimeMachine kicked in and I read some more email.
On Oct 25, 2008, at 11:42 AM, Simon Urbanek wrote:
>
> mini, Intel Code 1.66GHz (so much slower than yours):
> user system elapsed
> 15.321 0.123 15.764
>
> iMac, Intel Core 2 Duo 2.8GHz (a bit faster than yours):
> user system elapsed
> 8.602 0.067 8.708
On Oct 25, 2008, at 1:06 PM, Byron Ellis wrote:
> On my 2.16GHz Macbook w/ 2GB of RAM your code takes about 11.2 and 112
> seconds total time elapse respectively. Are you running from the GUI
> or
> through Terminal?
>
> On Sat, Oct 25, 2008 at 10:23 AM, Nils Rüfenacht <nils.ruefenacht at bluewin.ch
>> wrote:
>
>>
>> Without running any other program in the background yields (on my
>> Mac)
>>
>>> indexGenerator(0.08,0.15,30,100)
>> user system elapsed
>> 19.739 0.220 19.961
>>> indexGenerator(0.08,0.15,30,1000)
>> user system elapsed
>> 197.721 2.138 199.012
More information about the R-SIG-Mac
mailing list