Skip to content

Commit

Permalink
ci: allow run benchmark on schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Aug 14, 2024
1 parent 5963627 commit 46608f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Benchmark
on:
issue_comment:
types: [created]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
reuse:
Expand Down Expand Up @@ -48,7 +50,7 @@ jobs:
benchmark-name: "magiconion-${{ github.event.issue.number || (inputs.reuse && 'wf' || github.run_number) }}"
benchmark-timeout: 20 # 10min (env prepare) + 5min (clone & benchmark) + 5min (spare)
client-benchmark-script-path: ".github/scripts/run-benchmark-client.sh"
client-benchmark-script-args: "--args \"-u http://${BENCHMARK_SERVER_NAME}:5000 -s CI --channels ${{ matrix.channels }} --streams ${{ matrix.streams }} --tags '${{ matrix.tags }}'\""
client-benchmark-script-args: "--args \"-u http://${BENCHMARK_SERVER_NAME}:5000 -s CI --channels ${{ matrix.channels }} --streams ${{ matrix.streams }} --validate true --tags '${{ matrix.tags }}'\""
server-benchmark-script-path: ".github/scripts/run-benchmark-server.sh"
server-benchmark-script-args: ""
secrets: inherit
3 changes: 2 additions & 1 deletion perf/BenchmarkApp/PerformanceTest.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ async Task Main(
uint rounds = 1,
[Option("v")] bool verbose = false,
SerializationType serialization = SerializationType.MessagePack,
bool validate = false,
string? tags = null
)
{
var config = new ScenarioConfiguration(url, warmup, duration, streams, channels, verbose);
var datadog = DatadogMetricsRecorder.Create(tags);
var datadog = DatadogMetricsRecorder.Create(tags, validate: validate);

PrintStartupInformation();

Expand Down

0 comments on commit 46608f5

Please sign in to comment.