octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: randn benchmarks


From: Dmitri A. Sergatskov
Subject: Re: randn benchmarks
Date: Fri, 23 Jan 2004 15:33:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115

Dirk and Paul,

While we at it. Could someone explain it to me why Dirk's randmt is few times
faster than the randn from octave-forge?


octave:2> tic ; randmt(1000); toc
ans = 0.055763
octave:3> tic ; randmt(3000); toc
ans = 0.77237
octave:4> tic ; randmt(10000); toc
ans = 26.469
octave:5> tic ; randn(1000); toc
ans = 0.31140
octave:6> tic ; randn(3000); toc
ans = 2.7659
octave:7> tic ; randn(10000); toc
ans = 30.786
((( It does seem that times converge for very large arrays...)))
octave:8> which randn
randn is the dynamically-linked function from the file
/usr/local/libexec/octave/2.1.50/site/oct/i686-pc-linux-gnu/octave-forge/randn.oct


Sincerely,

Dmitri.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]