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
c0cb23b8
Commit
c0cb23b8
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge branch 'guess_cpu' into test_affine
parents
8a7fe1a0
bd24a461
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
test/cpp/qps/gen_build_yaml.py
+19
-1
19 additions, 1 deletion
test/cpp/qps/gen_build_yaml.py
tools/run_tests/tests.json
+16
-16
16 additions, 16 deletions
tools/run_tests/tests.json
with
35 additions
and
17 deletions
test/cpp/qps/gen_build_yaml.py
+
19
−
1
View file @
c0cb23b8
...
...
@@ -46,6 +46,24 @@ import performance.scenario_config as scenario_config
def
_scenario_json_string
(
scenario_json
):
return
json
.
dumps
(
scenario_config
.
remove_nonproto_fields
(
scenario_json
))
def
threads_of_type
(
scenario_json
,
path
):
d
=
scenario_json
for
el
in
path
.
split
(
'
/
'
):
if
el
not
in
d
:
return
0
d
=
d
[
el
]
return
d
def
guess_cpu
(
scenario_json
):
client
=
threads_of_type
(
scenario_json
,
'
client_config/async_client_threads
'
)
server
=
threads_of_type
(
scenario_json
,
'
server_config/async_server_threads
'
)
# make an arbitrary guess if set to auto-detect
# about the size of the jenkins instances we have for unit tests
if
client
==
0
:
client
=
8
if
server
==
0
:
server
=
8
return
(
scenario_json
[
'
num_clients
'
]
*
client
+
scenario_json
[
'
num_servers
'
]
*
server
)
print
yaml
.
dump
({
'
tests
'
:
[
{
...
...
@@ -59,7 +77,7 @@ print yaml.dump({
'
language
'
:
'
c++
'
,
'
boringssl
'
:
True
,
'
defaults
'
:
'
boringssl
'
,
'
cpu_cost
'
:
1000.0
,
'
cpu_cost
'
:
guess_cpu
(
scenario_json
)
,
'
exclude_configs
'
:
[]
}
for
scenario_json
in
scenario_config
.
CXXLanguage
().
scenarios
()
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/tests.json
+
16
−
16
View file @
c0cb23b8
...
...
@@ -23031,7 +23031,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23057,7 +23057,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23083,7 +23083,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23109,7 +23109,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23135,7 +23135,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23161,7 +23161,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23187,7 +23187,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23213,7 +23213,7 @@
"posix",
"windows"
],
"cpu_cost": 1
000.0
,
"cpu_cost": 1,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23239,7 +23239,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23265,7 +23265,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23291,7 +23291,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23317,7 +23317,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
2
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23343,7 +23343,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23369,7 +23369,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23395,7 +23395,7 @@
"posix",
"windows"
],
"cpu_cost":
1000.0
,
"cpu_cost":
8
,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
...
...
@@ -23421,7 +23421,7 @@
"posix",
"windows"
],
"cpu_cost": 1
000.0
,
"cpu_cost": 1,
"defaults": "boringssl",
"exclude_configs": [],
"flaky": false,
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