Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Ed's "indirect addressing"

Author: Dann Corbit

Date: 13:38:11 01/30/03

Go up one level in this thread


On January 30, 2003 at 15:51:12, Andreas Guettinger wrote:

>On January 30, 2003 at 08:30:51, Russell Reagan wrote:
>
>>On January 30, 2003 at 02:00:57, Dann Corbit wrote:
>>
>>>On January 30, 2003 at 01:34:19, Russell Reagan wrote:
>>>
>>>>On January 30, 2003 at 00:05:35, Dann Corbit wrote:
>>>>
>>>>>Try the following with your compiler inside of your profiler:
>>>>
>>>>With MSVC 6 Pro...
>>>>
>>>>        Func          Func+Child           Hit
>>>>        Time   %         Time      %      Count  Function
>>>>---------------------------------------------------------
>>>>    3819.452  34.0     3819.452  34.0  1000000 _swi (test.obj)
>>>>    3718.852  33.1     3718.852  33.1  1000000 _poi (test.obj)
>>>>    3710.973  33.0     3710.973  33.0  1000000 _arr (test.obj)
>>>>       0.000   0.0    11213.196  99.7        1 _main (test.obj)
>>>
>>>Interesting.  MS VC++ usually has huge differences for the different methods.
>>>
>>>What optimization settings did you use?
>>
>>I set the active configuration to Release, and enabled profiling. When I compile
>>for Pentium Pro, I get:
>>
>>        Func          Func+Child           Hit
>>        Time   %         Time      %      Count  Function
>>---------------------------------------------------------
>>    3806.877  33.9     3806.877  33.9  1000000 _swi (test.obj)
>>    3714.811  33.1     3714.811  33.1  1000000 _poi (test.obj)
>>    3702.155  33.0     3702.155  33.0  1000000 _arr (test.obj)
>>       0.000   0.0    11217.521  99.9        1 _main (test.obj)
>
>
>I tried this on gcc with gcc -O2 -pg -Wall hallo.c, and the results of gprof:
>
>
>                                  called/total       parents
>index  %time    self descendents  called+self    name    	index
>                                  called/total       children
>
>                0.00        0.00       1/1           __start (788)
>[1]    100.0    0.01        1.24       1         _main [1]
>                0.57        0.00 1000000/1000000     _swi [2]
>                0.42        0.00 1000000/1000000     _arr [3]
>                0.25        0.00 1000000/1000000     _poi [4]
>
>-----------------------------------------------
>
>                0.57        0.00 1000000/1000000     _main [1]
>[2]     45.6    0.57        0.00 1000000         _swi [2]
>
>-----------------------------------------------
>
>                0.42        0.00 1000000/1000000     _main [1]
>[3]     33.6    0.42        0.00 1000000         _arr [3]
>
>-----------------------------------------------
>
>                0.25        0.00 1000000/1000000     _main [1]
>[4]     20.0    0.25        0.00 1000000         _poi [4]
>
>-----------------------------------------------
>
>regards
>Andreas

Intel Profiler with Intel C++ compiler:
Full Name	Timer Samples	Timer events	Timer %
tanh.A	783	783000	15.5388
sinh.A	527	527000	10.45842
cosh.A	521	521000	10.33935
sin.A	446	446000	8.850962
exp.A	441	441000	8.751736
cos.A	423	423000	8.394523
tan.A	367	367000	7.283191
log10.A	362	362000	7.183965
log.A	317	317000	6.290931
swi	260	260000	5.159754 <<<<<<<< * LAME * <<<<<<<<<<<<
arr	95	95000	1.885295 <<<<<<<< * GOOD * <<<<<<<<<<<<
sqrt.A	92	92000	1.825759
poi	75	75000	1.488391 <<<<<<<< * BEST * <<<<<<<<<<<<
log	40	40000	0.793808
sin	36	36000	0.714427
log10	35	35000	0.694582
tanh	35	35000	0.694582
sqrt	33	33000	0.654892
cosh	32	32000	0.635047
tan	32	32000	0.635047
exp	31	31000	0.615201
cos	30	30000	0.595356
sinh	22	22000	0.436595




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.