Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
1b2bc5a8
Commit
1b2bc5a8
authored
Feb 28, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
906462a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
go/neo/t/benchplot
go/neo/t/benchplot
+43
-2
go/neo/t/neotest
go/neo/t/neotest
+1
-1
No files found.
go/neo/t/benchplot
View file @
1b2bc5a8
...
...
@@ -89,11 +89,13 @@ def seriesof(B):
#
# The whole plot is labeled as labkey.
def plotseries(labkey, S):
plt.title("
XXX
ZODB server handling read requests")
plt.title("ZODB server handling read requests")
# 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)
xticks = set()
yticks0 = set()
for name in namev:
bs = S[name]
...
...
@@ -107,6 +109,15 @@ def plotseries(labkey, S):
# XXX fmt for line
# XXX always use the same colors for the same lines (e.g. picking by hash)
# remember n we saw in xticks
for _ in x:
xticks.add(_)
# remember first values in yticks0
for _ in y[:1]: # XXX with [:2] it becomes too noisy
yticks0.add(int(_))
# first legend showing labels from labkey
# https://matplotlib.org/tutorials/intermediate/legend_guide.html#multiple-legends-on-the-same-axes
...
...
@@ -122,6 +133,36 @@ def plotseries(labkey, S):
plt.ylabel(S.unit)
plt.xlabel("XXX number of clients running simultaneously")
# mark every n we saw in xticks. we don'
t
need
other
xticks
besides
that
.
xtickv
=
list
(
xticks
)
xtickv
.
sort
()
plt
.
xticks
(
xtickv
)
# mark first values with dedicated y ticks.
yticks
=
set
(
plt
.
yticks
()[
0
])
yticks
.
update
(
yticks0
)
ytickv
=
list
(
yticks
)
ytickv
.
sort
()
yticklabv
=
[]
for
i
,
_
in
enumerate
(
ytickv
):
if
_
not
in
yticks0
:
l
=
'%d'
%
_
else
:
# smaller in size (not to overload / overlap)
# (NOTE our custom ticks are not at edges: i-1 and i+1 are always in range)
if
_
-
ytickv
[
i
-
1
]
>
ytickv
[
i
+
1
]
-
_
:
d
=
'_'
# shift a bit down
else
:
d
=
'^'
# shift a bit up
l
=
r'${}%s{%d}$'
%
(
d
,
_
)
yticklabv
.
append
(
l
)
plt
.
yticks
(
ytickv
,
yticklabv
)
plt
.
show
()
...
...
@@ -131,7 +172,7 @@ def plotseries(labkey, S):
def
main
():
B
=
load_file
(
sys
.
argv
[
1
])
splitby = ['
dataset
', '
cluster
']
# XXX + neo server/backend
splitby
=
[
'dataset'
,
'cluster'
]
Bl
=
B
.
bylabel
(
splitby
)
for
labkey
in
Bl
:
...
...
go/neo/t/neotest
View file @
1b2bc5a8
...
...
@@ -873,7 +873,7 @@ cpustat() {
}
Nrun
=
5
# repeat benchmarks N time
Nparv
=
"1 2
4 8 16"
# run parallel zwrk benchmarks with so many clients (XXX +6, +12 ?)
Nparv
=
"1 2
3 4 8 12 16"
# run parallel zwrk benchmarks with so many clients
#Npar=16 # run so many parallel clients in parallel phase
#profile=
...
...
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