This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Linux Number Crunching: Benchmarking Compilers and Languages on ia32
- From: Steven Anderson <stevenwanderson at yahoo dot com>
- To: scott at coyotegulch dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 30 Jan 2003 13:52:08 -0800 (PST)
- Subject: RE: Linux Number Crunching: Benchmarking Compilers and Languages on ia32
> To get the whole story, please read the entire
article.
I read the entire article and decided to see the
results on my Athlon-XP box. So I downloaded the tests
and ran them. GCC did not fair well which surprised
me. Also, I have a program that does Gaussian
elimination where g++ beats the Intel compiler with
the proper optimization setting. So I was surprise how
poorly GCC did in the tests.
After reviewing the code, I found that all the times
are done using the clock system call. The problem is
clock returns an approximation of the processor time.
The test should use the times system call to determine
how long each function ran.
Thanks
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com