Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STL average latency versus latency histogram #1150

Open
ChristianKnoblauch opened this issue Oct 15, 2024 · 0 comments
Open

STL average latency versus latency histogram #1150

ChristianKnoblauch opened this issue Oct 15, 2024 · 0 comments

Comments

@ChristianKnoblauch
Copy link

How is the average latency is related to the latency histogram?

Sample:
'latency': {'average': 24.0,
'histogram': {0: 14,
10: 34760168,
20: 197101091,
30: 59427711,
40: 16875361,
50: 8154571,
60: 10386280,
70: 3989660,
80: 1684491,
90: 1482486,
100: 4916878,
200: 3705691,
300: 3705095,
400: 4566288,
500: 3686509,
600: 53},

Average latency is reported as 24usec.

Calculated average latency from the histogram is 40usec.
[ sum of latency of all packets / number of all packets ]
[ (34760168 * 10usec + 197101091 * 20usec + ...) / (34760168 + 197101091 + ...)]

Any explanation how TRex calculates the average?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant