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
6a5e923a
Commit
6a5e923a
authored
7 years ago
by
ncteisen
Browse files
Options
Downloads
Patches
Plain Diff
Only output crashes if they occur
parent
dc168556
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
+8
-3
8 additions, 3 deletions
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
tools/profiling/microbenchmarks/bm_diff/bm_main.py
+4
-2
4 additions, 2 deletions
tools/profiling/microbenchmarks/bm_diff/bm_main.py
with
12 additions
and
5 deletions
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
+
8
−
3
View file @
6a5e923a
...
@@ -185,9 +185,14 @@ def diff(bms, loops, track, old, new):
...
@@ -185,9 +185,14 @@ def diff(bms, loops, track, old, new):
for
name
in
sorted
(
benchmarks
.
keys
()):
for
name
in
sorted
(
benchmarks
.
keys
()):
if
benchmarks
[
name
].
skip
():
continue
if
benchmarks
[
name
].
skip
():
continue
rows
.
append
([
name
]
+
benchmarks
[
name
].
row
(
fields
))
rows
.
append
([
name
]
+
benchmarks
[
name
].
row
(
fields
))
note
=
'
Corrupt JSON data (indicates timeout or crash) = %s
'
%
str
(
note
=
None
badjson_files
)
if
len
(
badjson_files
):
note
+=
'
\n\n
Missing files (new benchmark) = %s
'
%
str
(
nonexistant_files
)
note
=
'
Corrupt JSON data (indicates timeout or crash) = %s
'
%
str
(
badjson_files
)
if
len
(
nonexistant_files
):
if
note
:
note
+=
'
\n\n
Missing files (indicates new benchmark) = %s
'
%
str
(
nonexistant_files
)
else
:
note
=
'
\n\n
Missing files (indicates new benchmark) = %s
'
%
str
(
nonexistant_files
)
if
rows
:
if
rows
:
return
tabulate
.
tabulate
(
rows
,
headers
=
headers
,
floatfmt
=
'
+.2f
'
),
note
return
tabulate
.
tabulate
(
rows
,
headers
=
headers
,
floatfmt
=
'
+.2f
'
),
note
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
tools/profiling/microbenchmarks/bm_diff/bm_main.py
+
4
−
2
View file @
6a5e923a
...
@@ -126,8 +126,10 @@ def main(args):
...
@@ -126,8 +126,10 @@ def main(args):
text
=
'
Performance differences noted:
\n
'
+
diff
text
=
'
Performance differences noted:
\n
'
+
diff
else
:
else
:
text
=
'
No significant performance differences
'
text
=
'
No significant performance differences
'
print
(
'
%s
\n
%s
'
%
(
note
,
text
))
if
note
:
comment_on_pr
.
comment_on_pr
(
'
```
\n
%s
\n\n
%s
\n
```
'
%
(
note
,
text
))
text
=
note
+
'
\n\n
'
+
text
print
(
'
%s
'
%
text
)
comment_on_pr
.
comment_on_pr
(
'
```
\n
%s
\n
```
'
%
text
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
...
...
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