Gopi Goteti
2012-Aug-27 05:48 UTC
[R] total CPU time in Matlab - what is the equivalent in R?
I am trying to compare the speed of my R code with that reported by the authors of a reference paper who used Matlab. The authors of the paper state "Total CPU time for the algorithm was 10 s for the ...on a modest mobile 2.2 GHz Pentium processor running MATLAB v.6". I am using proc.time (similar to the example shown in ?proc.time) to determine the speed of my R code. Could someone please tell me whether "user" time or "system" time is the equivalent of total CPU time reported by Matlab. Thanks GG [[alternative HTML version deleted]]
Jeff Newmiller
2012-Aug-27 06:12 UTC
[R] total CPU time in Matlab - what is the equivalent in R?
Google is your friend http://www.ats.ucla.edu/stat/r/faq/timing_code.htm http://r.research.att.com/benchmarks/ --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Gopi Goteti <gopi.goteti at gmail.com> wrote:>I am trying to compare the speed of my R code with that reported by the >authors of a reference paper who used Matlab. The authors of the paper >state "Total CPU time for the algorithm was 10 s for the ...on a modest >mobile 2.2 GHz Pentium processor running MATLAB v.6". > >I am using proc.time (similar to the example shown in ?proc.time) to >determine the speed of my R code. Could someone please tell me whether >"user" time or "system" time is the equivalent of total CPU time >reported >by Matlab. > >Thanks >GG > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at 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.