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
412 changes: 412 additions & 0 deletions .github/scripts/process-benchmarks.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions .github/workflows/speed-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,51 @@ jobs:
path: |
**/BenchmarkDotNet.Artifacts/**

aggregate-and-commit-results:
needs: [run-time-benchmarks, build-time-benchmarks]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: write

steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download All Runtime Benchmark Artifacts
uses: actions/download-artifact@v6
with:
path: benchmark-results/runtime/
pattern: ubuntu_markdown_run_time_*
merge-multiple: true

- name: Download Build Time Benchmark Artifacts
uses: actions/download-artifact@v6
with:
path: benchmark-results/build/
pattern: ubuntu_markdown_build_time
merge-multiple: true

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Process Benchmark Results
run: |
node .github/scripts/process-benchmarks.js

- name: Commit Updated Benchmarks
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/docs/benchmarks/ docs/static/benchmarks/
if ! git diff --quiet --staged; then
git commit -m "chore: update benchmark results [skip ci]"
git push
else
echo "No benchmark changes to commit"
fi

Loading
Loading