Thanks. Shall I sum the user time and system time, which roughly equals to
the elapsed time?

I also tried to improve the code by using 'cmpfun(myfunction)' in
'compiler' package, however, it doesn't help too much.

Libo

On Tue, Feb 21, 2012 at 8:11 PM, R. Michael Weylandt <
michael.weyla...@gmail.com> wrote:

> The time relationships aren't strictly linear between any of the three
> measures, but *very generally* I've interpreted them as something
> like:
>
> User: stuff you do (i.e., doing all the commands)
> System: stuff at the OS level (memory allocations and whatnot)
> Elapsed: Clock time
>
> None is a great measure in isolation, but the system time is not the
> worrisome one here: it looks like your script takes about a day and a
> half to run....that might be ok (and perhaps unavoidable) but it looks
> like there might be value in trying to squeeze some speed out of your
> script. A simple thing like byte-compiling that gives 2x speedup would
> be huge here.
>
> Michael
>
> On Tue, Feb 21, 2012 at 10:06 PM, Libo Sun <libo...@rams.colostate.edu>
> wrote:
> > Hi all,
> >
> > I got this time for my code,
> >
> >> proc.time()-pt
> >      user     system    elapsed
> > 132541.743      0.004 132533.526
> >
> > As you can see, there is huge difference btw elapsed time and system
> time.
> > Does that mean lots of I/O? Or some bad coding?
> >
> > Thanks,
> > Libo
> >
> >        [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to