And even more for the heck of it... this kind of thing is also device-dependent.
(this is *not* a controlled test; some variation could be due to other processes running on the machine) -Don > x11(type='Xlib') > system.time(plot(runif(1e6),runif(1e6))) user system elapsed 0.712 0.165 2.129 > dev.off() null device 1 > x11(type='cairo') > system.time(plot(runif(1e6),runif(1e6))) user system elapsed 48.444 0.169 49.051 > dev.off() null device 1 > quartz() > system.time(plot(runif(1e6),runif(1e6))) user system elapsed 36.358 0.097 36.485 > sessionInfo() R version 2.13.1 (2011-07-08) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rmacq_1.1-3 -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 11/19/11 3:17 PM, "Carl Witthoft" <c...@witthoft.com> wrote: >Another few data points, just for the heck of it. This is on a 2.66GHz >Intel Core Duo iMac. > > >Rgames> system.time(plot(runif(1e6),runif(1e6))) > user system elapsed > 34.405 0.079 34.432 >Rgames> system.time(plot(runif(1e6),runif(1e6),pch='.')) > user system elapsed > 12.602 0.032 12.596 > >Rgames> system.time(print(xyplot(runif(1e6)~runif(1e6)))) > user system elapsed > 36.651 0.837 37.371 > >Rgames> system.time(print(xyplot(runif(1e6)~runif(1e6),pch='.'))) > user system elapsed > 16.866 0.777 17.578 > >Rgames> system.time(scatterplot3d(runif(1e6),runif(1e6),rep(1,1e6))) > user system elapsed > 36.081 0.959 36.932 >Rgames> >system.time(scatterplot3d(runif(1e6),runif(1e6),rep(1,1e6),cex.symbols='.' >)) > user system elapsed > 18.834 0.864 19.629 >-- > >Sent from my Cray XK6 >"Pendeo-navem mei anguillae plena est." > >______________________________________________ >R-help@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.