Author: Dann Corbit
Date: 17:05:17 06/18/01
No noticeable difference on my PC. I compiled with these options for GCC 3.0:
$ gcc -W -Wall -ansi -pedantic -O3 -mcpu=athlon -march=athlon test_fpu.c
===============================================
This is the result for the Intel C++ compiler:
===============================================
C:\tmp>type test_fpc_intel.dat
Date run = 6/18/101
Pls supply info below, send to DaveGemini@aol.com
Tester name/ net address =
CPU mfg/id/Mhz =
MEM/CACHE =
O.S. / COMPILER =
Additional comments =
Results for 01/10/98 revision using TEST_FPU.C
Gauss 1000 x 2 inverts = 1.9 sec.
Accuracy of 2 computed numbers
Original = 0.852778710287790 0.136112552262947
Computed = 0.852778710287792 0.136112552262946
Avg Err. = 0.000000000000002
Crout 1000 x 2 inverts = 1.9 sec.
Accuracy of 2 computed numbers
Original = 0.852778710287790 0.136112552262947
Computed = 0.852778710287790 0.136112552262947
Avg Err. = 0.000000000000002
Dieter°w?ò.;I? 1000 x 2 inverts = 1.0 sec.
Accuracy of 2 computed numbers
Original = 0.852778710287790 0.136112552262947
Computed = 0.852778710287790 0.136112552262948
Avg Err. = 0.000000000000001
==================================================
This is the result for the Microsoft C++ compiler:
==================================================
C:\tmp>type test_fpc_microsoft.dat
Date run = 6/18/101
Pls supply info below, send to DaveGemini@aol.com
Tester name/ net address =
CPU mfg/id/Mhz =
MEM/CACHE =
O.S. / COMPILER =
Additional comments =
Results for 01/10/98 revision using TEST_FPU.C
Gauss 1000 x 2 inverts = 2.6 sec.
Accuracy of 2 computed numbers
Original = 0.412976470229194 0.162572099978637
Computed = 0.412976470229190 0.162572099978636
Avg Err. = 0.000000000000003
Crout 1000 x 2 inverts = 2.5 sec.
Accuracy of 2 computed numbers
Original = 0.412976470229194 0.162572099978637
Computed = 0.412976470229197 0.162572099978642
Avg Err. = 0.000000000000003
Dieter°w`¤/ 1000 x 2 inverts = 1.2 sec.
Accuracy of 2 computed numbers
Original = 0.412976470229194 0.162572099978637
Computed = 0.412976470229194 0.162572099978639
Avg Err. = 0.000000000000002
===============================================
This is the result for the 2.95 GCC compiler:
===============================================
C:\tmp>type test_fpc_gcc.dat
Date run = 6/18/101
Pls supply info below, send to DaveGemini@aol.com
Tester name/ net address =
CPU mfg/id/Mhz =
MEM/CACHE =
O.S. / COMPILER =
Additional comments =
Results for 01/10/98 revision using TEST_FPU.C
Gauss 1000 x 2 inverts = 3.0 sec.
Accuracy of 2 computed numbers
Original = 0.498985855141182 0.410993796033316
Computed = 0.498985855141179 0.410993796033314
Avg Err. = 0.000000000000002
Crout 1000 x 2 inverts = 2.0 sec.
Accuracy of 2 computed numbers
Original = 0.498985855141182 0.410993796033316
Computed = 0.498985855141182 0.410993796033316
Avg Err. = 0.000000000000000
Dieter 1000 x 2 inverts = 1.3 sec.
Accuracy of 2 computed numbers
Original = 0.498985855141182 0.410993796033316
Computed = 0.498985855141185 0.410993796033316
Avg Err. = 0.000000000000001
===============================================
This is the result for the 3.0 GCC compiler:
===============================================
C:\tmp>type test_fpc_gcc3.dat
Date run = 6/18/101
Pls supply info below, send to DaveGemini@aol.com
Tester name/ net address =
CPU mfg/id/Mhz =
MEM/CACHE =
O.S. / COMPILER =
Additional comments =
Results for 01/10/98 revision using TEST_FPU.C
Gauss 1000 x 2 inverts = 2.9 sec.
Accuracy of 2 computed numbers
Original = 0.580597890345658 0.738428285223631
Computed = 0.580597890345653 0.738428285223631
Avg Err. = 0.000000000000002
Crout 1000 x 2 inverts = 2.1 sec.
Accuracy of 2 computed numbers
Original = 0.580597890345658 0.738428285223631
Computed = 0.580597890345658 0.738428285223636
Avg Err. = 0.000000000000002
Dieter 1000 x 2 inverts = 1.3 sec.
Accuracy of 2 computed numbers
Original = 0.580597890345658 0.738428285223631
Computed = 0.580597890345655 0.738428285223635
Avg Err. = 0.000000000000003
--------------------------------------------------------------
Conclusion:
For this file (test_fpu.c) Intel is best, followed by MS, followed by either GCC
version {seems about a push}. GCC beats MS at the Crout method, for some reason
(which is interesting.)
This is a floating point benchmark, and so chess benchmarks may vary markedly
from this result.
Also, it may be that the Athlon optimizer has a ways to go yet.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.