Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
misc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
misc
Commits
63696046
Commit
63696046
authored
Apr 26, 2016
by
Elvis Pranskevichus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute lower latency quartile, use numpy style of calculating quantiles
parent
b77b5f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
echo_client
echo_client
+3
-2
No files found.
echo_client
View file @
63696046
...
...
@@ -96,7 +96,8 @@ if __name__ == '__main__':
'quantiles should be in [0, 1]'
weighted_quantiles
=
np
.
cumsum
(
weights
)
-
0.5
*
weights
weighted_quantiles
/=
np
.
sum
(
weights
)
weighted_quantiles
-=
weighted_quantiles
[
0
]
weighted_quantiles
/=
weighted_quantiles
[
-
1
]
return
np
.
interp
(
quantiles
,
weighted_quantiles
,
values
)
...
...
@@ -142,7 +143,7 @@ if __name__ == '__main__':
latency_std
=
math
.
sqrt
(
variance
)
latency_cv
=
latency_std
/
mean_latency
percentiles
=
[
50
,
75
,
90
,
99
]
percentiles
=
[
25
,
50
,
75
,
90
,
99
]
percentile_data
=
[]
quantiles
=
weighted_quantile
(
arange
,
[
p
/
100
for
p
in
percentiles
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment