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
269c4b98
Commit
269c4b98
authored
9 years ago
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
Testing scenarios for various performance characteristics
parent
ddd91dbb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/qps/qps-sweep.sh
+90
-19
90 additions, 19 deletions
test/cpp/qps/qps-sweep.sh
with
90 additions
and
19 deletions
test/cpp/qps/qps-sweep.sh
+
90
−
19
View file @
269c4b98
#!/bin/sh
# Copyright 2015, Google Inc.
# Copyright 2015
-2016
, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
...
...
@@ -37,22 +37,93 @@ fi
bins
=
`
find
.
.. ../.. ../../..
-name
bins |
head
-1
`
for
secure
in
true false
do
for
channels
in
1 2 4 8
do
for
client
in
SYNC_CLIENT ASYNC_CLIENT
do
for
server
in
SYNC_SERVER ASYNC_SERVER
do
for
rpc
in
UNARY STREAMING
do
echo
"Test
$rpc
$client
$server
,
$channels
channels, secure=
$secure
"
"
$bins
"
/opt/qps_driver
--rpc_type
=
$rpc
\
--client_type
=
$client
--server_type
=
$server
\
--secure_test
=
$secure
done
done
done
done
set
-x
big
=
65536
half
=
`
echo
$QPS_WORKERS
|
awk
-F
,
'{print int(NF/2)}'
`
for
secure
in
true false
;
do
# Scenario 1: generic async streaming ping-pong (contentionless latency)
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
1
\
--client_channels
=
1
--bbuf_req_size
=
0
--bbuf_resp_size
=
0
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 2: generic async streaming "unconstrained" (QPS)
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
64
--bbuf_req_size
=
0
--bbuf_resp_size
=
0
\
--async_client_threads
=
0
--async_server_threads
=
0
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
0
# Scenario 3: Latency at near-peak load (TBD)
# Scenario 4: Single-channel bidirectional throughput test (like TCP_STREAM).
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
1
--bbuf_req_size
=
$big
--bbuf_resp_size
=
$big
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 5: Sync unary ping-pong with protobufs
"
$bins
"
/opt/qps_driver
--rpc_type
=
UNARY
--client_type
=
SYNC_CLIENT
\
--server_type
=
SYNC_SERVER
--outstanding_rpcs_per_channel
=
1
\
--client_channels
=
1
--simple_req_size
=
0
--simple_resp_size
=
0
\
--secure_test
=
$secure
--num_servers
=
1
--num_clients
=
1
# Scenario 6: Sync streaming ping-pong with protobufs
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
SYNC_CLIENT
\
--server_type
=
SYNC_SERVER
--outstanding_rpcs_per_channel
=
1
\
--client_channels
=
1
--simple_req_size
=
0
--simple_resp_size
=
0
\
--secure_test
=
$secure
--num_servers
=
1
--num_clients
=
1
# Scenario 7: Async unary ping-pong with protobufs
"
$bins
"
/opt/qps_driver
--rpc_type
=
UNARY
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_SERVER
--outstanding_rpcs_per_channel
=
1
\
--client_channels
=
1
--simple_req_size
=
0
--simple_resp_size
=
0
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 8: Async streaming ping-pong with protobufs
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_SERVER
--outstanding_rpcs_per_channel
=
1
\
--client_channels
=
1
--simple_req_size
=
0
--simple_resp_size
=
0
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 9: Crossbar QPS test
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
64
--bbuf_req_size
=
0
--bbuf_resp_size
=
0
\
--async_client_threads
=
0
--async_server_threads
=
0
--secure_test
=
$secure
\
--num_servers
=
$half
--num_clients
=
0
# Scenario 10: Multi-channel bidir throughput test
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
64
--bbuf_req_size
=
$big
--bbuf_resp_size
=
$big
\
--async_client_threads
=
0
--async_server_threads
=
0
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 11: Single-channel request throughput test
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
1
--bbuf_req_size
=
$big
--bbuf_resp_size
=
0
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 12: Single-channel response throughput test
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_GENERIC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
1
--bbuf_req_size
=
0
--bbuf_resp_size
=
$big
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
# Scenario 13: Single-channel bidirectional protobuf throughput test
"
$bins
"
/opt/qps_driver
--rpc_type
=
STREAMING
--client_type
=
ASYNC_CLIENT
\
--server_type
=
ASYNC_SERVER
--outstanding_rpcs_per_channel
=
100
\
--client_channels
=
1
--simple_req_size
=
$big
--simple_resp_size
=
$big
\
--async_client_threads
=
1
--async_server_threads
=
1
--secure_test
=
$secure
\
--num_servers
=
1
--num_clients
=
1
done
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