Re: [R] system.time question

2012-10-21 Thread William Dunlap
0.003711 ... The times are shown in . Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Mark Leeds Sent: Saturday, October 20, 2012 9:16 AM To: R help Subject: [R

[R] system.time question

2012-10-20 Thread Mark Leeds
Hi : I looked at the help for system.time but I still have the following question. Can someone explain the output following output of system.time : user system elapsed 12399.681 5632.352 56935.647 Here's my take based on the fact that I was doing ps -aux | grep R off and on and

Re: [R] system.time question

2012-10-20 Thread Jeff Newmiller
You asked several questions. Elapsed: yes User + System = CPU: yes Finally: You have to look at the load and/or cpu core count. Unless you setup your code to take advantage of multiple cores, R runs on a single core. Also: Do you really need to ask that question?

Re: [R] system.time question

2012-10-20 Thread Prof Brian Ripley
On 20/10/2012 17:16, Mark Leeds wrote: Hi : I looked at the help for system.time but I still have the following question. Can someone explain the output following output of system.time : user system elapsed 12399.681 5632.352 56935.647 Yes, the help page can, via

Re: [R] system.time

2011-11-28 Thread jim holtman
This is an indication of the amount of CPU resources that you are using. Elapsed time is just the number of seconds that the R process (e.g., RGUI) has been running. user time is the amount of CPU that any commands/scripts have used that you are running; this is the one that you are typically

[R] system.time

2011-11-27 Thread Vikram Bahure
Dear R users. I wanted to know, how do we read the output of system.time. It would be helpful if you could let me know what are user system and elapsed. Regards Vikram [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] system.time

2011-11-27 Thread Jorge I Velez
Hi Vikram, Check ?system.time and ?proc.time. HTH, Jorge.- On Mon, Nov 28, 2011 at 12:41 AM, Vikram Bahure wrote: Dear R users. I wanted to know, how do we read the output of system.time. It would be helpful if you could let me know what are user system and elapsed. Regards Vikram

Re: [R] System.time

2009-02-19 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote: to contribute my few cents, here's a simple benchmarking routine, inspired by the perl module Benchmark. it allows one to benchmark an arbitrary number of expressions with an arbitrary number of replications, and provides a summary matrix with selected timings.

Re: [R] System.time

2009-02-12 Thread Gavin Simpson
On Wed, 2009-02-11 at 18:49 -0600, John Kerpel wrote: Hi folks! Does anyone know why I might see something like this after running system.time? system.time(svd(Mean_svd_data)) user system elapsed 0 0 0 The data set is tiny and the function returns results

Re: [R] System.time

2009-02-12 Thread Wacek Kusnierczyk
Gavin Simpson wrote: On Wed, 2009-02-11 at 18:49 -0600, John Kerpel wrote: Hi folks! Does anyone know why I might see something like this after running system.time? system.time(svd(Mean_svd_data)) user system elapsed 0 0 0 The data set is tiny and the function

Re: [R] System.time

2009-02-12 Thread Stavros Macrakis
On Thu, Feb 12, 2009 at 4:28 AM, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: When I'm testing the speed of things like this (that are in and of themselves very quick) for situations where it may matter, I wrap the function call in a call to replicate(): system.time(replicate(1000,

Re: [R] System.time

2009-02-12 Thread hadley wickham
On Thu, Feb 12, 2009 at 8:42 AM, Stavros Macrakis macra...@alum.mit.edu wrote: On Thu, Feb 12, 2009 at 4:28 AM, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: When I'm testing the speed of things like this (that are in and of themselves very quick) for situations where it may matter, I wrap the

Re: [R] System.time

2009-02-12 Thread Gavin Simpson
On Thu, 2009-02-12 at 09:42 -0500, Stavros Macrakis wrote: On Thu, Feb 12, 2009 at 4:28 AM, Gavin Simpson gavin.simp...@ucl.ac.uk wrote: When I'm testing the speed of things like this (that are in and of themselves very quick) for situations where it may matter, I wrap the function call

[R] System.time

2009-02-11 Thread John Kerpel
Hi folks! Does anyone know why I might see something like this after running system.time? system.time(svd(Mean_svd_data)) user system elapsed 0 0 0 The data set is tiny and the function returns results instantly, but shouldn't it still give me a time? Thanks, John

Re: [R] System.time

2009-02-11 Thread jim holtman
It depends on the granularity that the operating system is recording that time; on some systems the minimum might be 0.01 seconds. If it is that short, why worry about it. There is nothing unusual about the result. On Wed, Feb 11, 2009 at 7:49 PM, John Kerpel john.ker...@gmail.com wrote: Hi

[R] system.time()

2008-04-26 Thread Fernando Saldanha
I thought system.time() would return three numbers, the first two adding up to the third one. However, this does not hold in my system running Windows Vista Home Premium, with an Intel Core 2 Duo processor. For example, using the code in the help for system.time() (with one zero added), I got:

Re: [R] system.time()

2008-04-26 Thread jim holtman
The first two numbers will not add up to the third. The third is the elapsed time (wall clock) and the first two are CPU time; even though they have what appears to be the same units (seconds), they can not really be compared. If, for example, was script was taking input from the console, you

[R] system.time gives error when = is used for assignment (R-2.6.0)

2008-04-10 Thread Kyeongmi Cheon
Hello list, I found that system.time works correctly when I used - to assign a value to a variable but when I happened to use = instead of -, R gave an error message: Error in system.time(your argument here...). It happened with a few functions I tried. Is this a bug or is there any circumstances

Re: [R] system.time gives error when = is used for assignment (R-2.6.0)

2008-04-10 Thread Charles C. Berry
On Thu, 10 Apr 2008, Kyeongmi Cheon wrote: Hello list, I found that system.time works correctly when I used - to assign a value to a variable but when I happened to use = instead of -, R gave an error message: Error in system.time(your argument here...). It happened with a few functions I

Re: [R] system.time gives error when = is used for assignment(R-2.6.0)

2008-04-10 Thread Bill.Venables
Kyeongmi asks: Hello list, I found that system.time works correctly when I used - to assign a value to a variable but when I happened to use = instead of -, R gave an error message: Error in system.time(your argument here...). It happened with a few functions I tried. Is this a bug

Re: [R] system.time behavior using source

2007-09-18 Thread Prof Brian Ripley
You need to print the result of an expression if used from source(). Autoprinting only occurs at the top level. E.g. % cat systest.R print(system.time(for(i in 1:100) mad(runif(1000 source(systest.R) user system elapsed 0.140.000.20 On Mon, 17 Sep 2007, Leeds, Mark (IED)

Re: [R] system.time behavior using source

2007-09-17 Thread Gabor Grothendieck
Try this: source(myfile.R, echo = TRUE) On 9/17/07, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: If I type the line below at my Rprompt, it works fine. But, if I put the same line in a file called systest.R and then source that file at the prompt, nothing happens. IF I use R CMD BATCH, it also