From octave-maintainers-request at bevo dot che dot wisc dot edu Fri Jan 23 16:34:12 2004 Subject: Re: randn benchmarks From: "Dmitri A. Sergatskov" To: Dirk Eddelbuettel , Paul Kienzle Cc: David Bateman , octave-maintainers@bevo.che.wisc.edu Date: Fri, 23 Jan 2004 15:33:29 -0700 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.