-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nginx-delay
- Loading branch information
Showing
40 changed files
with
543 additions
and
344 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
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,38 +1,78 @@ | ||
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: | ||
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 benchmarks | ||
- name: Build devcontainer and run setup and benchmark | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: graphql-benchmarks | ||
push: never | ||
runCmd: | | ||
bash ./setup.sh | ||
bash ./run_benchmarks.sh | ||
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: build | ||
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 | ||
- name: Print benchmark results | ||
run: cat ./results.md | ||
|
@@ -51,4 +91,4 @@ jobs: | |
with: | ||
branch: main | ||
commit_author: Author <[email protected]> | ||
commit_message: "Update performance results in README.md" | ||
commit_message: "[ci skip] 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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# For apollo server: | ||
cd graphql/apollo_server | ||
npm i | ||
cd ../../ |
Oops, something went wrong.
aa76604
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ posts { id userId title user { id name email }}}
8,384.48
11.91
73.88x
1,136.58
87.45
10.02x
1,066.39
93.25
9.40x
733.96
136.59
6.47x
396.05
248.97
3.49x
185.38
521.48
1.63x
127.25
780.78
1.12x
113.49
855.94
1.00x
{ posts { title }}
18,088.80
5.52
40.62x
5,669.37
17.63
12.73x
4,807.29
20.94
10.79x
1,144.99
87.13
2.57x
1,111.57
97.59
2.50x
862.94
115.99
1.94x
801.53
124.61
1.80x
445.33
237.97
1.00x
{ greet }
37,908.50
2.64
25.68x
24,811.00
4.05
16.80x
24,601.90
8.77
16.66x
22,910.00
4.37
15.52x
4,699.00
21.23
3.18x
4,244.73
28.44
2.87x
4,073.03
26.58
2.76x
1,476.47
67.69
1.00x