Skip to content

Commit

Permalink
store benchmark results as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed May 17, 2024
1 parent e7e7d71 commit 8499148
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}

# - name: Set up Git
# run: |
# git config --global user.email "github-actions[bot]@users.noreply.github.com"
# git config --global user.name "github-actions[bot]"

- name: Build devcontainer and run benchmarks
uses: devcontainers/[email protected]
with:
Expand All @@ -42,12 +37,18 @@ jobs:
- name: Print benchmark results
run: cat ./results.md

- name: "Upload Artifact"
uses: actions/upload-artifact@v4
with:
path: *.txt
retention-days: 120

- name: Comment benchmark results on PR
if: github.event_name == 'pull_request_target'
uses: peter-evans/commit-comment@v3
with:
sha : ${{ github.event.pull_request.head.sha }}
body-path: 'results.md'
sha: ${{ github.event.pull_request.head.sha }}
body-path: "results.md"
reactions: eyes

- name: Commit and push changes (on main branch)
Expand Down
1 change: 0 additions & 1 deletion wrk/caliban_bench.sh

This file was deleted.

1 comment on commit 8499148

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Server Requests/sec Latency (ms)
[Caliban] 8,671.33 11.52
[async-graphql] 7,808.84 12.77
[Tailcall] 6,989.67 14.28
[Gqlgen] 2,215.58 46.56
[Apollo GraphQL] 1,845.64 54.08
[Netflix DGS] 1,349.16 78.89

Please sign in to comment.