Benchmark performance #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark performance | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
on: workflow_dispatch | |
jobs: | |
analyze: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: "5.x" | |
preferLatestVersion: true | |
- name: Determine version | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
updateAssemblyInfo: true | |
useConfigFile: true | |
configFilePath: gitversion.yml | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.x" | |
dotnet-quality: "ga" | |
- name: Build library | |
run: > | |
dotnet build | |
--configuration Release | |
--property:ContinuousIntegrationBuild=true | |
- name: Test performance | |
working-directory: tests/performance | |
run: dotnet run -c Release | |
- name: Save test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-summaries | |
path: tests/performance/BenchmarkDotNet.Artifacts/results | |
- name: Publish summary | |
working-directory: tests/performance/BenchmarkDotNet.Artifacts/results | |
run: | | |
echo "### Package version ${{ steps.gitversion.outputs.fullSemVer }}" >> $GITHUB_STEP_SUMMARY | |
echo "## Series indicators" >> $GITHUB_STEP_SUMMARY | |
cat Performance.SeriesIndicators-report-github.md >> $GITHUB_STEP_SUMMARY | |
echo "## Stream indicators (with Quote caching)" >> $GITHUB_STEP_SUMMARY | |
cat Performance.StreamIndicators-report-github.md >> $GITHUB_STEP_SUMMARY | |
echo "## Incremental indicators (with buffer)" >> $GITHUB_STEP_SUMMARY | |
cat Performance.Incrementals-report-github.md >> $GITHUB_STEP_SUMMARY | |
echo "## Utilities" >> $GITHUB_STEP_SUMMARY | |
cat Performance.Utility-report-github.md >> $GITHUB_STEP_SUMMARY |