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
dc44c268
Commit
dc44c268
authored
7 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Spam cleanup"
This reverts commit
1463d0e7
.
parent
6b0afac4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/profiling/microbenchmarks/bm_diff.py
+6
-0
6 additions, 0 deletions
tools/profiling/microbenchmarks/bm_diff.py
with
6 additions
and
0 deletions
tools/profiling/microbenchmarks/bm_diff.py
+
6
−
0
View file @
dc44c268
...
...
@@ -185,6 +185,9 @@ class Benchmark:
old_mdn
=
median
(
old
)
delta
=
new_mdn
-
old_mdn
ratio
=
changed_ratio
(
new_mdn
,
old_mdn
)
print
'
new=%r old=%r new_mdn=%f old_mdn=%f delta=%f ratio=%f p=%f
'
%
(
new
,
old
,
new_mdn
,
old_mdn
,
delta
,
ratio
,
p
)
if
p
<
args
.
p_threshold
and
abs
(
delta
)
>
_INTERESTING
[
f
][
'
abs_diff
'
]
and
abs
(
ratio
)
>
_INTERESTING
[
f
][
'
pct_diff
'
]:
self
.
final
[
f
]
=
delta
return
self
.
final
.
keys
()
...
...
@@ -209,16 +212,19 @@ for bm in comparables:
js_old_opt
=
json
.
loads
(
f
.
read
())
for
row
in
bm_json
.
expand_json
(
js_new_ctr
,
js_new_opt
):
print
row
name
=
row
[
'
cpp_name
'
]
if
name
.
endswith
(
'
_mean
'
)
or
name
.
endswith
(
'
_stddev
'
):
continue
benchmarks
[
name
].
add_sample
(
row
,
True
)
for
row
in
bm_json
.
expand_json
(
js_old_ctr
,
js_old_opt
):
print
row
name
=
row
[
'
cpp_name
'
]
if
name
.
endswith
(
'
_mean
'
)
or
name
.
endswith
(
'
_stddev
'
):
continue
benchmarks
[
name
].
add_sample
(
row
,
False
)
really_interesting
=
set
()
for
name
,
bm
in
benchmarks
.
items
():
print
name
really_interesting
.
update
(
bm
.
process
())
fields
=
[
f
for
f
in
args
.
track
if
f
in
args
.
track
]
...
...
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