[OpenSIPS-Devel] [ opensips-Patches-3555236 ] Benchmark Module Global Average

SourceForge.net noreply at sourceforge.net
Wed Aug 8 02:37:53 CEST 2012


Patches item #3555236, was opened at 2012-08-07 17:37
Message generated for change (Tracker Item Submitted) made by dmsanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3555236&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Sanders (dmsanders)
Assigned to: Nobody/Anonymous (nobody)
Summary: Benchmark Module Global Average

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3555236&group_id=232389



More information about the Devel mailing list