Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
allocbench
Commits
e6ccf23e
Commit
e6ccf23e
authored
Sep 14, 2018
by
Florian Fischer
Browse files
cleanup bench.py
parent
bded5bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
bench.py
View file @
e6ccf23e
...
...
@@ -7,11 +7,12 @@ import common_targets
from
falsesharing
import
falsesharing
from
loop
import
loop
# from bench_conprod import conprod
from
mysql
import
mysql
from
dj_trace
import
dj_trace
from
larson
import
larson
benchmarks
=
[
loop
,
mysql
,
falsesharing
,
dj_trace
,
larson
]
parser
=
argparse
.
ArgumentParser
(
description
=
"benchmark memory allocators"
)
parser
.
add_argument
(
"-s"
,
"--save"
,
help
=
"save benchmark results to disk"
,
action
=
'store_true'
)
parser
.
add_argument
(
"-l"
,
"--load"
,
help
=
"load benchmark results from disk"
,
action
=
'store_true'
)
...
...
@@ -22,9 +23,6 @@ parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_
parser
.
add_argument
(
"-sd"
,
"--summarydir"
,
help
=
"directory where all plots and the summary go"
,
type
=
str
)
parser
.
add_argument
(
"-a"
,
"--analyse"
,
help
=
"collect allocation sizes"
,
action
=
'store_true'
)
benchmarks
=
[
loop
,
mysql
,
falsesharing
,
dj_trace
,
larson
]
def
main
():
args
=
parser
.
parse_args
()
print
(
args
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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