On Wed, 2006-10-04 at 18:05 +1000, Jonathan Kelly wrote:
> skaller wrote:
> > On Tue, 2006-10-03 at 22:38 +1000, Jonathan Kelly wrote:
> >
> >> Hi,
> >>
> >> I was looking at the List module and thought the len function was
> >> elegant, but not very fast. While the smart people are working on the
> >> hard stuff, these things can be improved by the rest of us.
> >>
> >> My test programme went from 28.83 secs to 1.27 secs with this version of
> >> len. Go cat, go!
> >>
> >
> > How long does Ocaml take?
> >
> >
> Hmm ... not so good ...
>
> Ocaml test 1.25 secs
> Felix test 6.98 secs.
>
> but I'm only using gcc-3.4.4
Did you look at the Felix 'speed' test harness at all?
It would be good to add some more tests to it.
The tests must be dependent on some argument 'n'
which has reasonable granularity, eg for list sizes
you might use
list size = 1.2 ^ n // where ^ is exponential
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language