Skip to content

Commit 5982753

Browse files
authored
Fix benchmarks defaulting call count to zero (#1711)
1 parent 770947b commit 5982753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perf/benchmarkapps/GrpcClient/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static async Task<int> Main(string[] args)
6565
options.Add(new Option<int>(new string[] { "-c", "--connections" }, () => 1, "Total number of connections to keep open"));
6666
options.Add(new Option<int>(new string[] { "-w", "--warmup" }, () => 5, "Duration of the warmup in seconds"));
6767
options.Add(new Option<int>(new string[] { "-d", "--duration" }, () => 10, "Duration of the test in seconds"));
68-
options.Add(new Option<int>(new string[] { "--callCount" }, "Call count of test"));
68+
options.Add(new Option<int?>(new string[] { "--callCount" }, "Call count of test"));
6969
options.Add(new Option<string>(new string[] { "-s", "--scenario" }, "Scenario to run") { IsRequired = true });
7070
options.Add(new Option<bool>(new string[] { "-l", "--latency" }, () => false, "Whether to collect detailed latency"));
7171
options.Add(new Option<string>(new string[] { "-p", "--protocol" }, "HTTP protocol") { IsRequired = true });

0 commit comments

Comments
 (0)