Re: [R] Bechmarking my code

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Mon, 02 May 2011 13:10:24 +0200

On 02.05.2011 12:35, Alaios wrote:
> Dear all,
> I have written a quite big piece of code that takes like 6 hourse to execute (measured that with system.time).
>
> I was wondering if it is possible to try to further understand which are the pieces of code that are more time consuming so to try to improve them.
>
> Could you please help me understand how I can do this sort of benchmarking?

Use profiling. See ?Rprof and the manuals to get a first idea.

Uwe Ligges

> Best Regards
> Alex
>
> ______________________________________________
> 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.



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. Received on Thu 05 May 2011 - 06:25:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive