Skip to content

Commit

Permalink
chore: benchmark add step log
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Oct 16, 2024
1 parent 555c036 commit 7849341
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions perf/BenchmarkApp/PerformanceTest.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ async Task Main(
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing); // interval
}
}
WriteLog($"All scenario complete...");


WriteLog($"Saving metrics...");
foreach (var (s, results) in resultsByScenario)
{
await datadog.PutClientBenchmarkMetricsAsync(s, ApplicationInformation.Current, results);
Expand Down Expand Up @@ -166,6 +169,8 @@ async Task Main(
writer.WriteLine($"{s}\t{string.Join("\t", results.Select(x => x.RequestsPerSecond.ToString("0.000")))}\t{results.Average(x => x.RequestsPerSecond):0.000}");
}
}

WriteLog($"Benchmark completed!...");
}

async Task<PerformanceResult> RunScenarioAsync(ScenarioType scenario, ScenarioConfiguration config, IReadOnlyList<GrpcChannel> channels, IPerfTestControlService controlService)
Expand Down

0 comments on commit 7849341

Please sign in to comment.