--- Arved Sandstrom <[EMAIL PROTECTED]> wrote:

> I'd answer the question myself by doing timings, but I have not found out
> how to profile in J, by time or otherwise. So if anyone is inclined to feed
> this man by teaching him how to fish, that would actually be the best
> answer. :-)

A generally accepted method is to use "ts", time-space:

   ts=: 6!:2 , 7!:[EMAIL PROTECTED]
   
   ts '+/*:%1+i.1e6'    NB. one time
0.0579984 2.51672e7
   
   10 ts '+/*:%1+i.1e6' NB. 10 times
0.0596879 2.51672e7


For more involved and precise measurements of explicit defs, see
  http://www.jsoftware.com/jwiki/Guides/Performance_Monitor


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to