Skip to content

Benchmark performance #43

Benchmark performance

Benchmark performance #43

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@v3
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