Kris Kennaway schrieb:

>On Tue, Oct 15, 2002 at 07:31:28PM +0200, Daniel Rock wrote:
>
>  
>
>>The errors during "make test" are only one issue. What bothers me even 
>>more ist the high runtime of some of the tests (up to several *hours*). 
>>Finally a "make test" completed on my machine (perl-5.8 compiled without 
>>optimizations, which isn't a big issue, see my previous mail showing run 
>>times of one test):
>>
>>All tests successful.
>>u=13.8672  s=5.61719  cu=21700.3  cs=2264.12  scripts=666  tests=68469
>>   36915,89 real     21726,29 user      2278,34 sys
>>
>>The same tests on Solaris/x86 (processor ~40% faster) only take 12 minutes.
>>    
>>
>
>It would help if you can do some form of profiling to work out what
>exactly is taking longer.
>
>Kris
>  
>
Ok,

I tried it but the results are very strange.

I recompiled perl with profiling enabled and ran the test t/op/pat.t

gprof "thinks" the runtime is only 8 seconds, while in reality it takes 
more than 2 minutes to complete the test. A small excerpt from gprof output

FreeBSD:
granularity: each sample hit covers 4 byte(s) for 0.01% of 8.15 seconds

                                  called/total       parents
index  %time    self descendents  called+self    name           index
                                  called/total       children
[...]
[2]     92.1    0.00        7.50                 main [2]
                0.00        4.88       1/1           perl_parse [3]
                0.00        2.01       1/1           perl_destruct [6]
                0.00        0.35       1/1           perl_run [22]
                0.00        0.26       1/1           perl_construct [31]
                0.00        0.00       1/1           __fpsetreg [1807]
                0.00        0.00       1/1           perl_alloc [817]
                0.00        0.00       1/1           perl_free [818]


Solaris:
granularity: each sample hit covers 4 byte(s) for 0.02% of 10.13 seconds

                                  called/total       parents
index  %time    self descendents  called+self    name           index
                                  called/total       children

                0.00        5.79       1/1           _start [2]
[1]     57.1    0.00        5.79       1         main [1]
                0.00        3.80       1/1           perl_parse [5]
                0.00        1.21       1/1           perl_destruct [8]
                0.00        0.56       1/1           perl_construct [15]
                0.00        0.21       1/1           perl_run [27]
                0.00        0.00       1/1           perl_alloc [600]
                0.00        0.00       1/1           perl_free [610]
                0.00        0.00       1/1           _pthread_atfork [624]
                0.00        0.00       1/1           _signal [2752]
                0.00        0.00       1/1           
pthread_mutex_destroy [943]


Daniel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to