Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Somewhat Off-Topic GCC 3.0 compiler results [With TSCP]

Author: Dann Corbit

Date: 17:13:18 06/18/01

Go up one level in this thread


To create the GCC 3.0 compiler, I did a make clean make with 2.95-3.
After the install of the new binary, I did another clean make with GCC 3.0 (just
in case the libraries constructed were significantly faster).
--------------------------------
Here is the Intel compiler build's output:
--------------------------------
Tom Kerrigan's Simple Chess Program (TSCP)
version 1.73, 2/11/01
Copyright 1997 Tom Kerrigan

"help" displays a list of commands.

tscp> bench

8  . r b . . r k .
7  p . . . . p p p
6  . p . q p . n .
5  . . . n . . N .
4  . . p P . . . .
3  . . P . . . P .
2  P P Q . . P B P
1  R . B . R . K .

   a b c d e f g h

ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3334 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3335 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3355 ms

Nodes: 550822
Best time: 3334 ms
Nodes per second: 165214 (1123.1 MIPS)
tscp> bench

8  . r b . . r k .
7  p . . . . p p p
6  . p . q p . n .
5  . . . n . . N .
4  . . p P . . . .
3  . . P . . . P .
2  P P Q . . P B P
1  R . B . R . K .

   a b c d e f g h

ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3565 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3335 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3355 ms

Nodes: 550822
Best time: 3335 ms
Nodes per second: 165164 (1122.8 MIPS)
tscp>
--------------------------------
Here is the GCC 3.0 output:
--------------------------------
dcorbit@DANNFAST e:/tscp
$ gcc -W -Wall -ansi -pedantic -O3 -mcpu=athlon -march=athlon tscp.c
In file included from tscp.c:5:
search.c: In function `reps':
search.c:237: warning: array subscript has type `char'
search.c:241: warning: array subscript has type `char'

dcorbit@DANNFAST e:/tscp
$ ./a

Tom Kerrigan's Simple Chess Program (TSCP)
version 1.73, 2/11/01
Copyright 1997 Tom Kerrigan

"help" displays a list of commands.

tscp> bench

8  . r b . . r k .
7  p . . . . p p p
6  . p . q p . n .
5  . . . n . . N .
4  . . p P . . . .
3  . . P . . . P .
2  P P Q . . P B P
1  R . B . R . K .

   a b c d e f g h

ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3856 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3866 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3855 ms

Nodes: 550822
Best time: 3855 ms
Nodes per second: 142885 (971.3 MIPS)
tscp> bench
Illegal move.
tscp> bench

8  . r b . . r k .
7  p . . . . p p p
6  . p . q p . n .
5  . . . n . . N .
4  . . p P . . . .
3  . . P . . . P .
2  P P Q . . P B P
1  R . B . R . K .

   a b c d e f g h

ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3845 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3826 ms
ply      nodes  score  pv
  1        130     20  c1e3
  2       3441      5  g5e4 d6c7
  3       8911     30  g5e4 d6c7 c1e3
  4     141367     10  g5e4 d6c7 c1e3 c8d7
  5     550822     26  c2a4 d6c7 g2d5 e6d5 c1e3
Time: 3855 ms

Nodes: 550822
Best time: 3826 ms
Nodes per second: 143968 (978.7 MIPS)
tscp>
--------------------------------
Conclusion:
Intel C++ is faster.
Try with your favorite program, of course.  Your actual mileage may vary.




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.