Repository navigation
Update CerbiStream benchmarks to current governance stack #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Benchmark smoke | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ master, main ] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| benchmark-smoke: | ||
| name: Restore, build, and smoke benchmarks | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install .NET SDK | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '9.0.x' | ||
|
|
||
| - name: Restore | ||
| run: dotnet restore Cerbi-Benchmark-Tests.sln | ||
|
|
||
| - name: Build Release | ||
| run: dotnet build Cerbi-Benchmark-Tests.sln --configuration Release --no-restore | ||
|
|
||
| - name: BenchmarkDotNet smoke run | ||
| run: >- | ||
| dotnet run --project Cerbi-Benchmark-Tests/Cerbi-Benchmark-Tests.csproj | ||
| --configuration Release --no-restore --no-build -- | ||
| --filter '*MS_Log_Plain*' | ||
| --job Dry | ||
| --artifacts ./BenchmarkDotNet.Artifacts | ||
|
|
||
| - name: Upload smoke benchmark artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| if: always() | ||
| with: | ||
| name: benchmark-smoke-results | ||
| path: BenchmarkDotNet.Artifacts/** | ||
| if-no-files-found: warn | ||
|
|
||
| - name: Full benchmark note | ||
| run: echo "Smoke results prove benchmark discovery/execution only; full performance numbers require the dedicated full benchmark run." | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,18 @@ | ||
| using BenchmarkDotNet.Running; | ||
| using System.Reflection; | ||
|
|
||
| public class Program | ||
| { | ||
| public static void Main(string[] args) | ||
| { | ||
| Console.WriteLine(">>> Running updated PopularLoggerBenchmarks (subset for quick validation)..."); | ||
| if (args is null || args.Length == 0) | ||
| { | ||
| Console.WriteLine("Running the complete PopularLoggerBenchmarks suite."); | ||
| BenchmarkRunner.Run<CerbiBenchmark.PopularLoggerBenchmarks>(); | ||
| return; | ||
| } | ||
|
|
||
| // For quicker iteration you can filter benchmarks via BenchmarkSwitcher or regex; left simple here | ||
| BenchmarkRunner.Run<CerbiBenchmark.PopularLoggerBenchmarks>(); | ||
| Console.WriteLine("Running the requested filtered benchmark selection."); | ||
| BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When users follow the repo's documented reproduction command with no BenchmarkDotNet arguments ( Useful? React with 👍 / 👎. |
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.