an HP question...
|
10-24-2017, 12:58 AM
(This post was last modified: 10-24-2017 01:05 AM by webmasterpdx.)
Post: #11
|
|||
|
|||
RE: an HP question...
I did some timing using TEVAL, and got some unusual results.
I used the following program: Code:
The results are: TEST(1,1) gives {0_s,0.001_s,2} This indicates the CASE alternative is faster on a single run, but... TEST(1,1000) gives {0.086_s,0.069_s,2} This indicates that with a loop of 1000 times, the CASE statement is faster???? In general, TEST(n,1000) indicates that the CASE statement is faster, even for when the DEFAULT is used. I notice that TEVAL can give different values on successive runs. Why is that? Also, why would the CASE alternative seem to give a faster run time than CASE for a run of 1, but as soon as N (the loop count) rises, typically with a value of 2, the CASE statement is faster???? Thanks -Donald |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)