Computer Chess Club Archives


Search

Terms

Messages

Subject: What should I include in the Bench command

Author: Uri Blass

Date: 00:53:26 12/06/02


I decided to build a bench command for movei.

Here is an example for first bench command that calculate number of nodes at
depth 7 and print information about the nodes for every position.

choosemove(0) means that it does not print the analysis but if the number of
nodes is the same I do not need the analysis.

void bench(void)
{
	int totalnodes=0;
	max_depth=7;
	setup("1r3rk1/3qn1bp/p1np2p1/1ppNpp2/2P2P2/1PNPP1P1/PB4QP/1R3RK1 w - - 0 1");
	choosemove(0);
	printf(" %d ",nodes);
	totalnodes+=nodes;
	setup("1rb2rk1/1pq3bp/1Np1n3/p1Pp1p1n/1P1Np3/P2PP1P1/1BQ3BP/R4RK1 w - - 0 1");
	choosemove(0);
	printf(" %d ",nodes);
	totalnodes+=nodes;
	setup("r4rk1/2q1bppp/2bp2n1/1p1Bp3/1BnPP3/2P1NN2/5PPP/R2Q1RK1 w - - 0 1");
	choosemove(0);
	printf(" %d ",nodes);
	totalnodes+=nodes;
	setup("3qrrk1/pb5p/1p1p2p1/2p1pp2/1PPbPPn1/P2P2P1/1BQ3BP/1R1N1R1K w - - 0 1");
	choosemove(0);
	printf(" %d ",nodes);
	totalnodes+=nodes;
	printf(" %d ",totalnodes);
}

I think that if the total number of nodes are the same then probably the nodes
for every position is the same.

My questions are the following:
1)What statistics should I include in the bench commands
to do it more productive.

I am sure that more statistics is needed and not only the number of nodes at
fixed depth.

I guess that it may be better if I write a function
nextstring(epdfile) to get the next string.
so I can use one loop instead of a lot of setup commands.

Uri



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.