Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
d21040bf
Commit
d21040bf
authored
7 years ago
by
ncteisen
Browse files
Options
Downloads
Patches
Plain Diff
Update readme
parent
9266975c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/profiling/microbenchmarks/bm_diff/README.md
+22
-7
22 additions, 7 deletions
tools/profiling/microbenchmarks/bm_diff/README.md
tools/profiling/microbenchmarks/bm_diff/bm_main.py
+1
-0
1 addition, 0 deletions
tools/profiling/microbenchmarks/bm_diff/bm_main.py
with
23 additions
and
7 deletions
tools/profiling/microbenchmarks/bm_diff/README.md
+
22
−
7
View file @
d21040bf
...
...
@@ -19,14 +19,29 @@ made some significant changes and want to see some data. From your branch, run
`tools/profiling/microbenchmarks/bm_diff/bm_main.py -b bm_error -l 5 -d master`
This will build the
`bm_error`
binary on your branch and master. It will then
run these benchmarks 5 times each. Lastly it will compute the statistically
significant performance differences between the two branches. This should show
the nice performance wins your changes have made.
This will build the
`bm_error`
binary on your branch, and then it will checkout
master and build it there too. It will then run these benchmarks 5 times each.
Lastly it will compute the statistically significant performance differences
between the two branches. This should show the nice performance wins your
changes have made.
If you have already invoked bm_main with
`-d master`
, you should instead use
`-o old`
for subsequent runs. This allows the script to skip re-building and
re-running the unchanged master branch.
`-o`
for subsequent runs. This allows the script to skip re-building and
re-running the unchanged master branch. For example:
`tools/profiling/microbenchmarks/bm_diff/bm_main.py -b bm_error -l 5 -o`
This will only build and run
`bm_error`
on your branch. It will then compare
the output to the saved runs from master.
## Advanced Workflow
If you have a deeper knowledge of these scripts, you can use them to do more
fine tuned benchmark comparisons. For example, you could build, run, and save
the benchmark output from two different base branches. Then you could diff both
of these baselines against you working branch to see how the different metrics
change. The rest of this doc goes over the details of what each of the
individual modules accomplishes.
## bm_build.py
...
...
@@ -55,7 +70,7 @@ For example, if you were to run:
`tools/profiling/microbenchmarks/bm_diff/bm_run.py -b bm_error -b baseline -l 5`
Then an example output file would be
`bm_error.opt.baseline.
1
.json`
Then an example output file would be
`bm_error.opt.baseline.
0
.json`
## bm_diff.py
...
...
This diff is collapsed.
Click to expand it.
tools/profiling/microbenchmarks/bm_diff/bm_main.py
+
1
−
0
View file @
d21040bf
...
...
@@ -71,6 +71,7 @@ def _args():
argp
.
add_argument
(
'
-o
'
,
'
--old
'
,
default
=
'
old
'
,
type
=
str
,
help
=
'
Name of baseline run to compare to. Ususally just called
"
old
"'
)
argp
.
add_argument
(
...
...
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