Author: Gian-Carlo Pascutto
Date: 16:41:21 12/05/01
Go up one level in this thread
On December 05, 2001 at 19:19:35, Dann Corbit wrote: >On December 05, 2001 at 18:54:35, Pham Minh Tri wrote: > >>Hi all, >>Someone could know exactly how many processor's cirlces for some functions (e.g, >>eval). I am curious how to measure? > >By circles, I assume you mean cycles. > >You can get an approximation by having your compiler emit assembly for the >function you are interested in. Then count the cycles for each operation. > >You will notice that some operations will have a cycle range rather than a cycle >count. Also, it is going to be hard for you to accurately predict pipeline >stalls and missed branch predictions. > >Hence, what people usually do is just run the sucker through a profiler and see >where the time is going. One can get a very accurate estimate by use of the RDTSC instruction, although I cannot produce the code offhand. -- GCP
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.