🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4914

profiling chessprogramm

#4914
From: Vincent Diepeveen
Date: Fri, 24 Jun 1994 14:04
41 lines
1975 bytes
Hello,

I am trying to programm my own chessprogramm.
Now i am trying to profile my programm:
I like to know the amount of systemtime my programm needs
for example the quiescencesearch.

Writing under dos, profiling is not possible, even not with
Turbo Profiler, the programm is simply too big.

So i tried it on my own way, but after that try i only received
more questions in my mind... (i'm sorry for my poor english)

Where my quiescencesearch was called:
  tempscore = Quiescence( alfa, beta, ... );
  
i changed it into

backup all variables that will be changed
  tempscore = Quiescence( alfa, beta, ... );
restore all backuped variables
  tempscore = Quiescence( alfa, beta, ... );
restore all backuped variables

So, i'm calling the quiescencesearch 2x now.
And all variables that could have influence on the way
the moves are processed are restored in between and afterwards.

Now the amazing result:
To reach the depth of 6 ply, my programm needed
 140 seconds.
Adding the quiescencesearch a second time, it needed
 460 seconds.

Amazing! 
I cannot explain it. 
--
                +--------------------------------------+
                ||  email  : vdiepeve@cs.ruu.nl       ||
                ||  fidonet: 2:280/206.23             ||
                +======================================+
Technical Details
Message-ID: <Crwn37.816@cs.ruu.nl>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!EU.net!sun4nl!ruuinf!vdiepeve

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,f59f1abc6b514837,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-06-24 07:28:39 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!EU.net!sun4nl!ruuinf!vdiepeve
From: vdiepeve@cs.ruu.nl (Vincent Diepeveen)
Subject: profiling chessprogramm
Message-ID: <Crwn37.816@cs.ruu.nl>
Keywords: chess programm profiling
Sender: usenet@cs.ruu.nl (Six O'Clock News)
Organization: Utrecht University, Dept. of Computer Science
Date: Fri, 24 Jun 1994 14:04:18 GMT
Lines: 41