-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8247a9
commit 9227d6d
Showing
11 changed files
with
69 additions
and
124 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,38 @@ | ||
name: "Run benchmark" | ||
|
||
on: | ||
pull_request_target: | ||
types: [assigned, opened, synchronize, reopened, edited] | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
issues: write | ||
|
||
jobs: | ||
benchmark: | ||
build: | ||
runs-on: benchmarking-runner | ||
if: github.event.head_commit.message != 'Update performance results in README.md' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
strategy: | ||
matrix: | ||
service: | ||
[ | ||
apollo_server, | ||
caliban, | ||
netflix_dgs, | ||
gqlgen, | ||
tailcall, | ||
async_graphql, | ||
hasura, | ||
graphql_jit, | ||
] | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | ||
|
||
- name: Build devcontainer and run setup and benchmark | ||
- name: Build devcontainer and run benchmarks | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: graphql-benchmarks | ||
push: never | ||
runCmd: | | ||
bash ./graphql/${{ matrix.service }}/setup.sh | ||
bash run_benchmarks.sh ${{ matrix.service }} | ||
- name: List benchmark files | ||
run: | | ||
ls -la bench*.txt || echo "No matching files found" | ||
- name: Upload benchmark results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: benchmark-results | ||
path: bench*.txt | ||
|
||
analyze: | ||
needs: benchmark | ||
runs-on: benchmarking-runner | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download all benchmark results | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: benchmark-results | ||
path: . | ||
|
||
- name: List downloaded artifacts | ||
run: ls -la bench*.txt || echo "No matching files found" | ||
|
||
- name: Analyze results | ||
run: | | ||
bash run_analyze_script.sh | ||
bash ./setup.sh | ||
bash ./run_benchmarks.sh | ||
- name: Print benchmark results | ||
run: cat ./results.md | ||
|
@@ -90,4 +51,4 @@ jobs: | |
with: | ||
branch: main | ||
commit_author: Author <[email protected]> | ||
commit_message: "[ci skip] update performance results in README.md" | ||
commit_message: "Update performance results in README.md" |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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