On 25 Jun 2004 18:26:17 -0500, Scott A Crosby <[EMAIL PROTECTED]> writes:

Whoops, didn't intend this to go out till I got data.

> I'm doing a 3.0 from the CVS nightly on the web page. 
> 
> First thing I notice is that forking overhead is gone, and in the
> non-bayes case, regular expression matching looks to be a bottleneck
> with >40% of the CPU time. Either the other overheads have been
> reduced, or regexps have gotten a lot slower.
> 
> With bayes, results look very different. Functions dealing with
> 'magic' have jumped, hugely in the profile compared to 2.63 w/ bayes
> and 3.0 w/o bayes. They're using at least three times more CPU time
> than regexp matching.
> 
> 
> In the non-bayes case:
> 
> CPU: Athlon, speed 1837.72 MHz (estimated)
> Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit 
> mask of 0x00 (No unit mask) count 1000000
> samples  %        app name                 symbol name
> 278758   37.1061  perl                     S_regmatch
> 41368     5.5066  perl                     S_find_byclass
> 40040     5.3298  libc-2.3.2.so            (no symbols)
> 25855     3.4416  perl                     S_regtry
> 25830     3.4383  perl                     S_reginclass
> 18666     2.4847  perl                     S_hv_fetch_common
> 17591     2.3416  perl                     S_regrepeat
> 16418     2.1854  perl                     Perl_leave_scope
> 10221     1.3605  perl                     Perl_sv_setsv_flags
> 9854      1.3117  perl                     Perl_pp_padsv
> 9761      1.2993  perl                     Perl_pp_nextstate
> 
> 
> In the bayes case:

After 4,000 messages:

samples  %        app name                 symbol name
324700    8.9652  perl                     S_regmatch
206709    5.7074  perl                     restore_magic
205653    5.6782  perl                     Perl_mg_get
143322    3.9572  libc-2.3.2.so            (no symbols)
142252    3.9277  perl                     S_save_magic
139293    3.8460  perl                     Perl_save_alloc
128485    3.5475  perl                     Perl_sv_setsv_flags
120541    3.3282  libdb3.so.3.0.2          (no symbols)
104162    2.8760  perl                     Perl_mg_set
102750    2.8370  perl                     Perl_save_destructor_x
102359    2.8262  perl                     Perl_pp_padsv
86991     2.4019  perl                     Perl_sv_magic
85570     2.3626  perl                     Perl_sv_2iv
80832     2.2318  perl                     Perl_runops_standard
61224     1.6904  perl                     Perl_sv_setiv


After 35k messages.

samples  %        app name                 symbol name
2534332   7.8080  perl                     S_regmatch
1892554   5.8308  perl                     restore_magic
1883650   5.8033  perl                     Perl_mg_get
1302141   4.0118  perl                     S_save_magic
1261665   3.8871  perl                     Perl_save_alloc
1256240   3.8704  libc-2.3.2.so            (no symbols)
1168978   3.6015  perl                     Perl_sv_setsv_flags
1031635   3.1784  libdb3.so.3.0.2          (no symbols)
957873    2.9511  perl                     Perl_mg_set
937394    2.8880  perl                     Perl_save_destructor_x
922467    2.8420  perl                     Perl_pp_padsv
787831    2.4272  perl                     Perl_sv_magic

Scott

Reply via email to