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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
f3b28f30
Commit
f3b28f30
authored
May 12, 2017
by
Vijay Pai
Committed by
GitHub
May 12, 2017
Browse files
Options
Downloads
Plain Diff
Merge pull request #11030 from vjpai/oss
Add qps scenarios for better C++ large-message throughput measurement
parents
4b56aa52
f6f28a78
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/generated/tests.json
+126
-0
126 additions, 0 deletions
tools/run_tests/generated/tests.json
tools/run_tests/performance/scenario_config.py
+20
-1
20 additions, 1 deletion
tools/run_tests/performance/scenario_config.py
with
146 additions
and
1 deletion
tools/run_tests/generated/tests.json
+
126
−
0
View file @
f3b28f30
...
@@ -41350,6 +41350,56 @@
...
@@ -41350,6 +41350,56 @@
"posix"
"posix"
]
]
},
},
{
"args": [
"--scenarios_json",
"{\"scenarios\": [{\"name\": \"cpp_protobuf_async_unary_1channel_100rpcs_1MB\", \"warmup_seconds\": 0, \"benchmark_seconds\": 1, \"num_servers\": 1, \"server_config\": {\"async_server_threads\": 0, \"security_params\": null, \"server_type\": \"ASYNC_SERVER\"}, \"num_clients\": 1, \"client_config\": {\"client_type\": \"ASYNC_CLIENT\", \"security_params\": null, \"payload_config\": {\"simple_params\": {\"resp_size\": 1048576, \"req_size\": 1048576}}, \"client_channels\": 1, \"async_client_threads\": 0, \"outstanding_rpcs_per_channel\": 100, \"rpc_type\": \"UNARY\", \"load_params\": {\"closed_loop\": {}}, \"histogram_params\": {\"max_possible\": 60000000000.0, \"resolution\": 0.01}}}]}"
],
"boringssl": true,
"ci_platforms": [
"linux"
],
"cpu_cost": "capacity",
"defaults": "boringssl",
"exclude_configs": [
"tsan",
"asan"
],
"excluded_poll_engines": [],
"flaky": false,
"language": "c++",
"name": "json_run_localhost",
"platforms": [
"linux"
],
"shortname": "json_run_localhost:cpp_protobuf_async_unary_1channel_100rpcs_1MB",
"timeout_seconds": 360
},
{
"args": [
"--scenarios_json",
"{\"scenarios\": [{\"name\": \"cpp_protobuf_async_streaming_from_client_1channel_1MB\", \"warmup_seconds\": 0, \"benchmark_seconds\": 1, \"num_servers\": 1, \"server_config\": {\"async_server_threads\": 0, \"security_params\": null, \"server_type\": \"ASYNC_SERVER\"}, \"num_clients\": 1, \"client_config\": {\"client_type\": \"ASYNC_CLIENT\", \"security_params\": null, \"payload_config\": {\"simple_params\": {\"resp_size\": 1048576, \"req_size\": 1048576}}, \"client_channels\": 1, \"async_client_threads\": 0, \"outstanding_rpcs_per_channel\": 1, \"rpc_type\": \"STREAMING_FROM_CLIENT\", \"load_params\": {\"closed_loop\": {}}, \"histogram_params\": {\"max_possible\": 60000000000.0, \"resolution\": 0.01}}}]}"
],
"boringssl": true,
"ci_platforms": [
"linux"
],
"cpu_cost": "capacity",
"defaults": "boringssl",
"exclude_configs": [
"tsan",
"asan"
],
"excluded_poll_engines": [],
"flaky": false,
"language": "c++",
"name": "json_run_localhost",
"platforms": [
"linux"
],
"shortname": "json_run_localhost:cpp_protobuf_async_streaming_from_client_1channel_1MB",
"timeout_seconds": 360
},
{
{
"args": [
"args": [
"--scenarios_json",
"--scenarios_json",
...
@@ -42908,6 +42958,82 @@
...
@@ -42908,6 +42958,82 @@
"shortname": "json_run_localhost:cpp_protobuf_async_streaming_from_server_qps_unconstrained_insecure",
"shortname": "json_run_localhost:cpp_protobuf_async_streaming_from_server_qps_unconstrained_insecure",
"timeout_seconds": 360
"timeout_seconds": 360
},
},
{
"args": [
"--scenarios_json",
"{\"scenarios\": [{\"name\": \"cpp_protobuf_async_unary_1channel_100rpcs_1MB\", \"warmup_seconds\": 0, \"benchmark_seconds\": 1, \"num_servers\": 1, \"server_config\": {\"async_server_threads\": 0, \"security_params\": null, \"server_type\": \"ASYNC_SERVER\"}, \"num_clients\": 1, \"client_config\": {\"client_type\": \"ASYNC_CLIENT\", \"security_params\": null, \"payload_config\": {\"simple_params\": {\"resp_size\": 1048576, \"req_size\": 1048576}}, \"client_channels\": 1, \"async_client_threads\": 0, \"outstanding_rpcs_per_channel\": 100, \"rpc_type\": \"UNARY\", \"load_params\": {\"closed_loop\": {}}, \"histogram_params\": {\"max_possible\": 60000000000.0, \"resolution\": 0.01}}}]}"
],
"boringssl": true,
"ci_platforms": [
"linux"
],
"cpu_cost": "capacity",
"defaults": "boringssl",
"exclude_configs": [
"asan-noleaks",
"asan-trace-cmp",
"basicprof",
"c++-compat",
"counters",
"dbg",
"gcov",
"helgrind",
"lto",
"memcheck",
"msan",
"mutrace",
"opt",
"stapprof",
"ubsan"
],
"excluded_poll_engines": [],
"flaky": false,
"language": "c++",
"name": "json_run_localhost",
"platforms": [
"linux"
],
"shortname": "json_run_localhost:cpp_protobuf_async_unary_1channel_100rpcs_1MB_low_thread_count",
"timeout_seconds": 360
},
{
"args": [
"--scenarios_json",
"{\"scenarios\": [{\"name\": \"cpp_protobuf_async_streaming_from_client_1channel_1MB\", \"warmup_seconds\": 0, \"benchmark_seconds\": 1, \"num_servers\": 1, \"server_config\": {\"async_server_threads\": 0, \"security_params\": null, \"server_type\": \"ASYNC_SERVER\"}, \"num_clients\": 1, \"client_config\": {\"client_type\": \"ASYNC_CLIENT\", \"security_params\": null, \"payload_config\": {\"simple_params\": {\"resp_size\": 1048576, \"req_size\": 1048576}}, \"client_channels\": 1, \"async_client_threads\": 0, \"outstanding_rpcs_per_channel\": 1, \"rpc_type\": \"STREAMING_FROM_CLIENT\", \"load_params\": {\"closed_loop\": {}}, \"histogram_params\": {\"max_possible\": 60000000000.0, \"resolution\": 0.01}}}]}"
],
"boringssl": true,
"ci_platforms": [
"linux"
],
"cpu_cost": "capacity",
"defaults": "boringssl",
"exclude_configs": [
"asan-noleaks",
"asan-trace-cmp",
"basicprof",
"c++-compat",
"counters",
"dbg",
"gcov",
"helgrind",
"lto",
"memcheck",
"msan",
"mutrace",
"opt",
"stapprof",
"ubsan"
],
"excluded_poll_engines": [],
"flaky": false,
"language": "c++",
"name": "json_run_localhost",
"platforms": [
"linux"
],
"shortname": "json_run_localhost:cpp_protobuf_async_streaming_from_client_1channel_1MB_low_thread_count",
"timeout_seconds": 360
},
{
{
"args": [
"args": [
"--scenarios_json",
"--scenarios_json",
This diff is collapsed.
Click to expand it.
tools/run_tests/performance/scenario_config.py
+
20
−
1
View file @
f3b28f30
...
@@ -112,6 +112,7 @@ def _ping_pong_scenario(name, rpc_type,
...
@@ -112,6 +112,7 @@ def _ping_pong_scenario(name, rpc_type,
categories
=
DEFAULT_CATEGORIES
,
categories
=
DEFAULT_CATEGORIES
,
channels
=
None
,
channels
=
None
,
outstanding
=
None
,
outstanding
=
None
,
num_clients
=
None
,
resource_quota_size
=
None
,
resource_quota_size
=
None
,
messages_per_stream
=
None
,
messages_per_stream
=
None
,
excluded_poll_engines
=
[]):
excluded_poll_engines
=
[]):
...
@@ -158,7 +159,7 @@ def _ping_pong_scenario(name, rpc_type,
...
@@ -158,7 +159,7 @@ def _ping_pong_scenario(name, rpc_type,
wide
=
channels
if
channels
is
not
None
else
WIDE
wide
=
channels
if
channels
is
not
None
else
WIDE
deep
=
int
(
math
.
ceil
(
1.0
*
outstanding_calls
/
wide
))
deep
=
int
(
math
.
ceil
(
1.0
*
outstanding_calls
/
wide
))
scenario
[
'
num_clients
'
]
=
0
# use as many client as available.
scenario
[
'
num_clients
'
]
=
num_clients
if
num_clients
is
not
None
else
0
# use as many client
s
as available.
scenario
[
'
client_config
'
][
'
outstanding_rpcs_per_channel
'
]
=
deep
scenario
[
'
client_config
'
][
'
outstanding_rpcs_per_channel
'
]
=
deep
scenario
[
'
client_config
'
][
'
client_channels
'
]
=
wide
scenario
[
'
client_config
'
][
'
client_channels
'
]
=
wide
scenario
[
'
client_config
'
][
'
async_client_threads
'
]
=
0
scenario
[
'
client_config
'
][
'
async_client_threads
'
]
=
0
...
@@ -196,6 +197,24 @@ class CXXLanguage:
...
@@ -196,6 +197,24 @@ class CXXLanguage:
def
scenarios
(
self
):
def
scenarios
(
self
):
# TODO(ctiller): add 70% load latency test
# TODO(ctiller): add 70% load latency test
yield
_ping_pong_scenario
(
'
cpp_protobuf_async_unary_1channel_100rpcs_1MB
'
,
rpc_type
=
'
UNARY
'
,
client_type
=
'
ASYNC_CLIENT
'
,
server_type
=
'
ASYNC_SERVER
'
,
req_size
=
1024
*
1024
,
resp_size
=
1024
*
1024
,
unconstrained_client
=
'
async
'
,
outstanding
=
100
,
channels
=
1
,
num_clients
=
1
,
secure
=
False
,
categories
=
[
SMOKETEST
]
+
[
SCALABLE
])
yield
_ping_pong_scenario
(
'
cpp_protobuf_async_streaming_from_client_1channel_1MB
'
,
rpc_type
=
'
STREAMING_FROM_CLIENT
'
,
client_type
=
'
ASYNC_CLIENT
'
,
server_type
=
'
ASYNC_SERVER
'
,
req_size
=
1024
*
1024
,
resp_size
=
1024
*
1024
,
unconstrained_client
=
'
async
'
,
outstanding
=
1
,
channels
=
1
,
num_clients
=
1
,
secure
=
False
,
categories
=
[
SMOKETEST
]
+
[
SCALABLE
])
for
secure
in
[
True
,
False
]:
for
secure
in
[
True
,
False
]:
secstr
=
'
secure
'
if
secure
else
'
insecure
'
secstr
=
'
secure
'
if
secure
else
'
insecure
'
smoketest_categories
=
([
SMOKETEST
]
if
secure
else
[])
+
[
SCALABLE
]
smoketest_categories
=
([
SMOKETEST
]
if
secure
else
[])
+
[
SCALABLE
]
...
...
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