On Wed, 20 May 2009, David Mitchell wrote:
> Some fixed tests:
> 
>     a =: ? 100000000 $ 100
>     (100) 6!:2 'b=.+/ a'
> 0.441664432211
>     (100) 6!:2 'b=.(+/ % #) a'
> 0.24710853195
>     (100) 6!:2 'b=.(+/) a'
> 0.375218973361

My computer does not have enough memory

    a =: ? 10000000 $ 100
   (100) 6!:2 'b=.+/ a'
0.03619472
   (100) 6!:2 '(+/ % #) a'
0.03697641

test again at a different time
   (100) 6!:2 '(+/ % #) a'
0.03704908
   (100) 6!:2 'b=.+/ a'
0.03556633

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩146 李益  喜見外弟又言別
    十年離亂後  長大一相逢  問姓驚初見  稱名憶舊容
    別來滄海事  語罷暮天鐘  明日巴陵道  秋山又幾重
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to