Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from:
000a029
)
vlib: calculate per-worker loops/second metric
17/25217/5
author
Dave Barach
<dave@barachs.net>
Mon, 17 Feb 2020 22:07:12 +0000
(17:07 -0500)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 18 Feb 2020 18:42:22 +0000
(18:42 +0000)
Use exponential smoothing. Each sample has a half-life of 1
second. reported_rate(t) = reported_rate(t-1) * K + rate(t)*(1-K)
Sample every 20ms, i.e. 50 samples per second
K = exp (-1.0/20.0);
K = 0.95;
Type: feature
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I9aea5dd5fecfaefffb78245316adb4bf62eb2bd4
No differences found