Skip to content
GitLab
Menu
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
9e05ba8b
Commit
9e05ba8b
authored
Jun 24, 2019
by
Florian Fischer
Browse files
add option to exclude benchmarks
parent
7ffa9b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
bench.py
View file @
9e05ba8b
...
...
@@ -24,6 +24,7 @@ parser.add_argument("-v", "--verbose", help="more output", action='count')
parser
.
add_argument
(
"-vdebug"
,
"--verbose-debug"
,
help
=
"debug output"
,
action
=
'store_true'
,
dest
=
"verbose_debug"
)
parser
.
add_argument
(
"-b"
,
"--benchmarks"
,
help
=
"benchmarks to run"
,
nargs
=
'+'
)
parser
.
add_argument
(
"-xb"
,
"--exclude-benchmarks"
,
help
=
"explicitly excluded benchmarks"
,
nargs
=
'+'
)
parser
.
add_argument
(
"-a"
,
"--allocators"
,
help
=
"allocators to test"
,
type
=
str
,
nargs
=
'+'
)
parser
.
add_argument
(
"-ns"
,
"--nosum"
,
help
=
"don't produce plots"
,
action
=
'store_true'
)
parser
.
add_argument
(
"-rd"
,
"--resultdir"
,
help
=
"directory where all results go"
,
type
=
str
)
...
...
@@ -169,6 +170,9 @@ def main():
for
bench
in
src
.
globalvars
.
benchmarks
:
if
args
.
benchmarks
and
bench
not
in
args
.
benchmarks
:
continue
if
args
.
exclude_benchmarks
and
bench
in
args
.
exclude_benchmarks
:
continue
if
args
.
analyse
or
not
args
.
nosum
:
bench_res_dir
=
os
.
path
.
join
(
resdir
,
bench
)
...
...
Write
Preview
Supports
Markdown
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