Re: speed of MTL

Gunter Winkler <[email protected]>
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
YY LI wrote:
> Dear sirs:
> I've done some test on the speed of mtl, comparing to my c code. 
> unfortunately, my mtl code runs more slowly than my c code. I'm sure I 
> have misused the mtl library, but, I cannot overcome it. please give 
> some guide.
> my tests is about the speed of "Multiply matrix A times vector x", my 
> compiler is visual c++ 6.0, I've compiled the code to be release 
> version, so I think I've enable the option of optimisition.
> 
> according to my test, the running time of the two senarios is as following:
> mtl      438ms
> c code   63ms

MSVC 6 does poor optimizations. GCC is slightly better ...

with g++-3.2 -O2 I have:
time mtl: 0.271005
time c: 0.106872

You should have a look at the specializations of
http://tlb.org/software.html or if you like the bindings to atlas
http://math-atlas.sourceforge.net/. On my site I have a little
comparison of these optimitzations
https://www-user.tu-chemnitz.de/~wgu/misc/mtl_bench.tar.gz

regards
Gunter


_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.