[R-SIG-Mac] Using GCC4/GFORTRAN with R (and R.app)
Jan de Leeuw
deleeuw at stat.ucla.edu
Thu Dec 1 23:46:36 CET 2005
On Dec 1, 2005, at 14:27 , Simon Urbanek wrote:
> Jan, if you have a spare minute, can you run some benchmarks of
> your gcc4-optimized R (preferably involving mostly Fortran code vs
> just C) against the CRAN binary? That would be quite helpful in
> assessing the current speed benefits...
In the past I used
sink("timings.lis")
hilbert<-function(n) 1/(outer(seq(n),seq(n),"+")-1)
print("hilbert n=500")
print(system.time(eigen(hilbert(500))))
print(system.time(eigen(hilbert(500))))
print(system.time(eigen(hilbert(500))))
print("hilbert n=1000")
print(system.time(eigen(hilbert(1000))))
print(system.time(eigen(hilbert(1000))))
print(system.time(eigen(hilbert(1000))))
print("sort n=6")
print(system.time(sort(rnorm(10^6))))
print(system.time(sort(rnorm(10^6))))
print(system.time(sort(rnorm(10^6))))
print("sort n=7")
print(system.time(sort(rnorm(10^7))))
print(system.time(sort(rnorm(10^7))))
print(system.time(sort(rnorm(10^7))))
sink()
would that do ?
===
Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of
Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical
Software
US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550; fax (310)-206-5658; email: deleeuw at stat.ucla.edu
.mac: jdeleeuw ++++++ aim: deleeuwjan ++++++ skype: j_deleeuw
homepages: http://gifi.stat.ucla.edu ++++++ http://www.cuddyvalley.org
------------------------------------------------------------------------
-------------------------
No matter where you go, there you are. --- Buckaroo Banzai
http://gifi.stat.ucla.edu/sounds/nomatter.au
More information about the R-SIG-Mac
mailing list