Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
174e4835
Commit
174e4835
authored
Feb 28, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cceca65f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
go/neo/t/benchplot
go/neo/t/benchplot
+8
-3
No files found.
go/neo/t/benchplot
View file @
174e4835
...
@@ -89,8 +89,13 @@ def seriesof(B):
...
@@ -89,8 +89,13 @@ def seriesof(B):
#
#
# The whole plot is labeled as labkey.
# The whole plot is labeled as labkey.
def plotseries(labkey, S):
def plotseries(labkey, S):
plt.title("XXX ZODB servers handling read requests")
plt.title("XXX ZODB server handling read requests")
for name in S:
# order plots (and thus their order in legend automatically) by value at "-1"
namev = S.keys()
namev.sort(key = lambda _: S[_].series[0][1].avg, reverse=True)
for name in namev:
bs = S[name]
bs = S[name]
x = [n for n,_ in bs.series]
x = [n for n,_ in bs.series]
y = [s.avg for _,s in bs.series]
y = [s.avg for _,s in bs.series]
...
@@ -108,7 +113,7 @@ def plotseries(labkey, S):
...
@@ -108,7 +113,7 @@ def plotseries(labkey, S):
# r - invisible something
# r - invisible something
r = matplotlib.patches.Rectangle((0,0), 1, 1, fill=False, edgecolor='
none
', visible=False)
r = matplotlib.patches.Rectangle((0,0), 1, 1, fill=False, edgecolor='
none
', visible=False)
lh = [r] * len(labkey)
lh = [r] * len(labkey)
ltext = ['
%
s
:
%
s
' % (k,v) for k,v in labkey]
ltext = ['
%
s
:
%
s
' % (k,v) for k,v in labkey]
lablegend = plt.legend(lh, ltext, handlelength=0, handletextpad=0, loc="upper right")
lablegend = plt.legend(lh, ltext, handlelength=0, handletextpad=0, loc="upper right")
ax = plt.gca().add_artist(lablegend)
ax = plt.gca().add_artist(lablegend)
...
...
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