Just to bore everyone but Simon and me to tears, here is 'fair' timing2.sh
variant using an r version that does not autoload().

e...@ron:/tmp$ ./timing3.sh 

 --- our r calling summary() 20 times
real    0m3.375s
user    0m3.100s
sys     0m0.268s

 --- GNU R's Rscript calling summary() 20 times
real    0m4.328s
user    0m3.880s
sys     0m0.412s

 --- our (empty) r calling summary() 20 times
real    0m2.517s
user    0m2.284s
sys     0m0.204s

 --- GNU R's (empty) Rscript calling summary() 20 times
real    0m2.756s
user    0m2.340s
sys     0m0.356s

 --- GNU R calling summary() 20 times
real    0m8.401s
user    0m7.812s
sys     0m0.528s
e...@ron:/tmp$ 

It's back to where we were, but Simon's point on library() taking a good
chunk of time is acknowledge.   I'll add a new switch to littler, which is
due for a new release anyway providing the new tempdir option that suggested
by Paul Gilbert a while back.

Cheers, Dirk

-- 
Three out of two people have difficulties with fractions.

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to