Re: [q-lang-users] Re: Newbie questions and comments
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2005-04-15 09:39:10
|
Albert Graef <Dr....@t-...> writes: > Yes, Q is a bit slow w.r.t. plain recursion. Well, if I take the > datapoints at http://shootout.alioth.debian.org/ as a reference that > would mean that Q is within a factor of <2 compared to Python. That's > consistent with my observations for this type of programs. > > Has anyone tried the Haskell version of the benchmark with Hugs yet? Some > time ago I did a tak benchmark with both Q and Hugs, and IIRC they were > pretty much at par. | zsh/scr, straw 10:18AM haskell/ % time runhugs takfp.lhs 10 | 11.0 | runhugs takfp.lhs 10 407.06s user 0.82s system 99% cpu 6:51.01 total | | zsh/scr, straw 10:25AM haskell/ % ~/q-src | zsh/scr, straw 10:28AM q-src/ % time ./takfp.q 5 | 10.0 | ./takfp.q 5 0.09s user 0.00s system 21% cpu 0.412 total | | zsh/scr, straw 10:28AM q-src/ % time ./takfp.q 10 | 11.0 | ./takfp.q 10 450.37s user 0.64s system 99% cpu 7:33.92 total | zsh/scr, straw 10:36AM q-src/ % HTH :) ~Tim -- <http://spodzone.org.uk/> |