File tree 1 file changed +11
-4
lines changed
src/BenchmarksApps/Grpc/GoClient
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,23 @@ func main() {
91
91
92
92
// Start background thread to track warmup and duration
93
93
go func () {
94
+ warmup := time .Duration (* warmup ) * time .Second
95
+ fmt .Printf ("Warming up for %v\n " , warmup )
94
96
warmingUp = true
95
97
warmupWg .Add (1 )
96
- time .Sleep (time .Duration (* warmup ) * time .Second )
98
+ time .Sleep (warmup )
99
+
100
+ fmt .Print ("Finished warming up\n " )
97
101
warmingUp = false
98
102
warmupWg .Done ()
99
- fmt .Print ("Finished warming up\n " )
100
- time .Sleep (time .Duration (* duration ) * time .Second )
103
+
104
+ duration := time .Duration (* duration ) * time .Second
105
+ fmt .Printf ("Running for %v\n " , duration )
106
+ time .Sleep (duration )
107
+
108
+ fmt .Print ("Stopping benchmarks\n " )
101
109
stopped = true
102
110
cancel ()
103
- fmt .Print ("Stopping benchmarks\n " )
104
111
}()
105
112
106
113
// Start caller threads for each connection + stream
You can’t perform that action at this time.
0 commit comments