[R-SIG-Mac] How to Speed up R on the G5

Michael Redmond redmond at stat.wisc.edu
Tue Feb 15 16:25:47 CET 2005


Doug,
Here are the results from the XServe.
Mike
---
R : Copyright 2004, The R Foundation for Statistical Computing
Version 2.0.1  (2004-11-15), ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.

 >
 > source("submit.R", echo=TRUE)

 > mm <- matrix(rnorm(9e+06), nc = 3000)

 > system.time(crossprod(mm), gc = TRUE)
[1] 6.13 0.28 3.56 0.00 0.00

 > system.time(crossprod(mm), gc = TRUE)
[1] 6.17 0.24 3.56 0.00 0.00

 > system.time(crossprod(mm), gc = TRUE)
[1] 6.27 0.16 3.55 0.00 0.00

-----

Douglas Bates wrote:
> Regarding the question of whether veclib is parallelized, I'm reasonably 
> sure that it is.  A few months ago I compiled a version of R using 
> veclib for the BLAS and ran a simple timing test on a matrix crossproduct.
> 
> mm <- matrix(rnorm(9e6), nc = 3000)
> system.time(crossprod(mm), gc = TRUE)
> system.time(crossprod(mm), gc = TRUE)
> system.time(crossprod(mm), gc = TRUE)
> 
> I found on a dual processor system that the elapsed time was about half 
> the user CPU time.
> 
> I don't have access to that machine right now but I should be able to do 
> such a test again next week or perhaps Michael Redmond can do it this week.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list