File tree 6 files changed +24
-2
lines changed
BenchmarksApps/Grpc/GoClient
6 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 97
97
messageBody : |
98
98
{
99
99
"name": "benchmarksdriver2",
100
- "args": [ "--application.aspnetcoreversion Latest --table GrpcBenchmarks --sql SQL_CONNECTION_STRING --session $(session) --profile ${{ parameters.profile }} --no-metadata --no-measurements --load.variables.duration ${{ parameters.duration }} --load.variables.warmup ${{ parameters.warmup }} ${{ s.arguments }} ${{ protocol.arguments }} ${{ stream.arguments }} --property scenario=unary --property payload=0" ]
100
+ "args": [ "--application.aspnetcoreversion Latest --table GrpcBenchmarks --sql SQL_CONNECTION_STRING --session $(session) --profile ${{ parameters.profile }} --no-metadata --no-measurements --load.variables.duration ${{ parameters.duration }} --load.variables.warmup ${{ parameters.warmup }} ${{ s.arguments }} ${{ protocol.arguments }} ${{ stream.arguments }} --property scenario=unary --property payload=0 --variable body=AAAAAAcKBVdvcmxk --variable path=/grpc.testing.BenchmarkService/UnaryCall " ]
101
101
}
102
102
- ${{ each s in parameters.scenarios }} :
103
103
- ${{ each callType in parameters.callTypes }} :
Original file line number Diff line number Diff line change 7
7
dockerContextDirectory : src/BenchmarksApps/Grpc/GoClient/
8
8
dockerFile : src/BenchmarksApps/Grpc/GoClient/Dockerfile
9
9
readyStateText : gRPC Client
10
+ waitForExit : true
10
11
variables :
11
12
connections : 1
12
13
warmup : 5
27
28
WARMUP : ' {{warmup}}'
28
29
REQUEST_SIZE : ' {{requestSize}}'
29
30
RESPONSE_SIZE : ' {{responseSize}}'
31
+ # GRPC_GO_LOG_VERBOSITY_LEVEL: 99
32
+ # GRPC_GO_LOG_SEVERITY_LEVEL: info
30
33
options :
31
34
requiredOperatingSystem : linux
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ func main() {
86
86
opts = append (opts , grpc .WithInsecure ())
87
87
}
88
88
89
+ opts = append (opts , grpc .WithBlock ())
90
+
89
91
// Create connections and related collections
90
92
buildConnections (context .Background (), opts )
91
93
@@ -115,6 +117,8 @@ func main() {
115
117
runWithConn (connectionID , cc )
116
118
}
117
119
// Wait for caller threads to finish
120
+
121
+ fmt .Print ("Waiting for caller threads to finish\n " )
118
122
finishedWg .Wait ()
119
123
120
124
fmt .Print ("Caller threads finished\n " )
Original file line number Diff line number Diff line change @@ -78,16 +78,22 @@ scenarios:
78
78
job : grpcAspNetCoreServer
79
79
load :
80
80
job : h2LoadClient
81
+ variables :
82
+ presetHeaders : grpc
81
83
grpccoreserver-h2loadclient :
82
84
application :
83
85
job : grpcCoreServer
84
86
load :
85
87
job : h2LoadClient
88
+ variables :
89
+ presetHeaders : grpc
86
90
grpcgoserver-h2loadclient :
87
91
application :
88
92
job : grpcGoServer
89
93
load :
90
94
job : h2LoadClient
95
+ variables :
96
+ presetHeaders : grpc
91
97
92
98
profiles :
93
99
aspnet-physical-lin :
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ static async Task Main(string[] args)
64
64
Console . WriteLine ( $ "Header: { key } ={ value } ") ;
65
65
}
66
66
67
+ if ( Headers . Count == 0 )
68
+ {
69
+ Console . WriteLine ( "No headers" ) ;
70
+ }
71
+
67
72
if ( optionBody . HasValue ( ) )
68
73
{
69
74
var requestBody = Convert . FromBase64String ( optionBody . Value ( ) ) ;
@@ -77,11 +82,14 @@ static async Task Main(string[] args)
77
82
}
78
83
79
84
var process = StartProcess ( ) ;
85
+
86
+ Console . WriteLine ( "Waiting for process exit" ) ;
80
87
process . WaitForExit ( ) ;
81
88
82
89
// Wait for all Output messages to be flushed and available in Output
83
90
await Task . Delay ( 100 ) ;
84
91
92
+ Console . WriteLine ( "Parsing output" ) ;
85
93
ParseOutput ( ) ;
86
94
} ) ;
87
95
Original file line number Diff line number Diff line change 22
22
duration : 15
23
23
warmup : 5
24
24
protocol : h2c
25
+ body : ' '
25
26
presetHeaders : none
26
- arguments : " -c {{connections}} -t {{threads}} -m {{streams}} -d {{duration}} -w {{warmup}} -u {{serverUri}}:{{serverPort}}{{path}} -p {{ protocol }} {{headers[presetHeaders]}} {% if body != null %} --body {{ body }} {% endif %}"
27
+ arguments : " -c {{connections}} -t {{threads}} -m {{streams}} -d {{duration}} -w {{warmup}} -u {{serverUri}}:{{serverPort}}{{path}} -p {{ protocol }} {{headers[presetHeaders]}} {% if body != '' %} --body {{ body }} {% endif %}"
27
28
options :
28
29
requiredOperatingSystem : linux
You can’t perform that action at this time.
0 commit comments