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.