Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/performance-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Performance Benchmarks

on:
push:
branches:
- 'master'
- 'release'
pull_request:
branches:
- 'master'
- 'release'
workflow_dispatch:

permissions:
contents: read

jobs:
benchmark:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x

- name: Build Performance Project
run: dotnet build tests/SharpCompress.Performance/SharpCompress.Performance.csproj --configuration Release

- name: Run Benchmarks
run: dotnet run --project tests/SharpCompress.Performance/SharpCompress.Performance.csproj --configuration Release --no-build -- --filter "*" --exporters json markdown --artifacts benchmark-results
continue-on-error: true
Comment on lines +33 to +35
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continue-on-error: true on the benchmark run step will mask benchmark execution failures (including crashes) and still produce a “successful” workflow run. If benchmark failures should be visible/actionable, remove continue-on-error or make the comparison step fail the job when results are missing/regressions are detected.

Copilot uses AI. Check for mistakes.

- name: Display Benchmark Results
if: always()
run: dotnet run --project build/build.csproj -- display-benchmark-results

- name: Compare with Baseline
if: always()
run: dotnet run --project build/build.csproj -- compare-benchmark-results

- name: Upload Benchmark Results
if: always()
uses: actions/upload-artifact@v6
with:
name: benchmark-results
path: benchmark-results/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ tests/TestArchives/*/Scratch2
tools
.idea/
artifacts/
BenchmarkDotNet.Artifacts/
baseline-artifacts/
profiler-snapshots/

.DS_Store
*.snupkg
benchmark-results/
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project>
<ItemGroup>
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
<PackageVersion Include="Bullseye" Version="6.1.0" />
<PackageVersion Include="AwesomeAssertions" Version="9.3.0" />
<PackageVersion Include="Glob" Version="1.1.9" />
Expand Down
Loading
Loading