On 8/14/07, Arie Groeneveld <[EMAIL PROTECTED]> wrote: > With a trick (using the list values more than once) I can > come up with: > > *Main> main > Computation time: 4.944 sec I > Computation time: 0.192 sec II > ok > (5.14 secs, 1270145980 bytes) > > Time I is inclusive the creation of random values > during the summation. > Time II: values exist already, so this value is the exclusive > summation time.
To be accurate, Time I should not include summation. This is because the result of the summation will not change -- with a sufficiently optimized interpreter, Time II would be 0. In other words, Time I should use some other operation (perhaps multiplication). -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
