Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
allocbench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Fischer
allocbench
Commits
e6ccf23e
Commit
e6ccf23e
authored
Sep 14, 2018
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
cleanup bench.py
parent
bded5bf9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bench.py
+2
-4
2 additions, 4 deletions
bench.py
with
2 additions
and
4 deletions
bench.py
+
2
−
4
View file @
e6ccf23e
...
@@ -7,11 +7,12 @@ import common_targets
...
@@ -7,11 +7,12 @@ import common_targets
from
falsesharing
import
falsesharing
from
falsesharing
import
falsesharing
from
loop
import
loop
from
loop
import
loop
# from bench_conprod import conprod
from
mysql
import
mysql
from
mysql
import
mysql
from
dj_trace
import
dj_trace
from
dj_trace
import
dj_trace
from
larson
import
larson
from
larson
import
larson
benchmarks
=
[
loop
,
mysql
,
falsesharing
,
dj_trace
,
larson
]
parser
=
argparse
.
ArgumentParser
(
description
=
"
benchmark memory allocators
"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"
benchmark memory allocators
"
)
parser
.
add_argument
(
"
-s
"
,
"
--save
"
,
help
=
"
save benchmark results to disk
"
,
action
=
'
store_true
'
)
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
'
)
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_
...
@@ -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
(
"
-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
'
)
parser
.
add_argument
(
"
-a
"
,
"
--analyse
"
,
help
=
"
collect allocation sizes
"
,
action
=
'
store_true
'
)
benchmarks
=
[
loop
,
mysql
,
falsesharing
,
dj_trace
,
larson
]
def
main
():
def
main
():
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
print
(
args
)
print
(
args
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment