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
3b26762b
Commit
3b26762b
authored
8 years ago
by
Elvis Pranskevichus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Record concurrency and payload size levels in JSON output
parent
a50a0e54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
run_benchmarks
run_benchmarks
+8
-0
No files found.
run_benchmarks
View file @
3b26762b
...
...
@@ -264,6 +264,8 @@ def main():
'title'
:
'{}kb messages, concurrency {}'
.
format
(
round
(
msgsize
/
1024
,
1
),
concurrency
),
'concurrency'
:
concurrency
,
'payload_size'
:
msgsize
,
'args'
:
[
'--msize={}'
.
format
(
msgsize
),
'--concurrency={}'
.
format
(
concurrency
)
...
...
@@ -338,6 +340,12 @@ def main():
print
()
if
args
.
save_json
:
benchmarks_data
=
{
'concurrency_levels'
:
args
.
concurrency_levels
,
'payload_size_levels'
:
args
.
payload_size_levels
,
'benchmarks'
:
benchmarks_data
,
}
with
open
(
args
.
save_json
,
'w'
)
as
f
:
json
.
dump
(
benchmarks_data
,
f
)
...
...
This diff is collapsed.
Click to expand it.
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