[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Displaying the time it takes to -list-
> -----Original Message-----
> From: Peter Jepsen [mailto:email@example.com]
> Sent: Tuesday, February 25, 2003 2:21 PM
> To: firstname.lastname@example.org
> Subject: st: Displaying the time it takes to -list-
> Nick Winter wrote:
> . list in 50000/50010
> takes 0.01 seconds in my test database, whereas
> . list
> takes over 4 seconds to begin.
> The following takes about 0.17 seconds:
> . list if inrange(_n,20000,20035)
> campared with:
> . generage rand=uniform()
> . list if rand>.9999
> which takes about 0.18 seconds to list in my sample dataset,
> How can I make Stata 8 display the time it takes from the moment I hit
> <ENTER> after issuing a -list- command until the results are
> Thank you in advance.
> Peter Jepsen.
I thought about this for a second before I did the tests listed above,
and decided that, in fact, I doubt you can.
What I did was
. set rmsg on
. set more off
and then hit break as quickly as I could after the long listing started.
That gives a timing of how long it takes to begin displaying and then to
display however many records before I hit break. (IE, it gives the
time-to-start-of-list plus my reaction time. I'm highly caffeinated
today, so I think my reaction time is well under 0.5 seconds...)
I figured that gave me a clear enough sense of how long it took (and
made it clear to me that it took *much* longer to begin listing lots of
records, compared to the shorter lists.)
* For searches and help try: