#240 Benchmark Module Global Average

1.8.x
closed-accepted
modules (179)
5
2013-01-17
2012-08-08
David Sanders
No

Currently the _bm_log_timer function in the benchmark module is not computing the global average correctly. It is dividing the timer sum by the last number of calls, rather than the global number of calls. This leads to an ever-increasing global average for call length.

Attached patch simply changes the timer sum to be divided by the global number of calls when calculating the global average.

Discussion

  • Hi David,

    Thanks for the fix, patch uploaded on trunk, 1.8 and 1.7

    Regards,
    Bogdan

     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed-accepted