Skip to content

Commit

Permalink
test cloud results
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester committed Jul 4, 2024
1 parent 3aaf778 commit f2c11e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Set IS_PUSH environment variable
if: github.ref == 'refs/heads/main'
run: echo "IS_PUSH=true" >> $GITHUB_ENV

- name: Build devcontainer
uses: devcontainers/[email protected]
Expand All @@ -35,7 +38,10 @@ jobs:
uses: grafana/setup-k6-action@v1

- name: Run benchmarks
env:
IS_PUSH: ${{ env.IS_PUSH }}
run: |
echo "IS_PUSH is set to $IS_PUSH"
bash ./setup.sh
bash ./run_benchmarks.sh
Expand Down
7 changes: 5 additions & 2 deletions k6/bench.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
test_name=$1
benchmark=$2

# k6 run k6/bench.js --quiet --out cloud --env TEST_NAME=$test_name --env BENCHMARK=$benchmark
k6 run k6/bench.js --quiet --env TEST_NAME=$test_name --env BENCHMARK=$benchmark
if [ "$IS_PUSH" = "true" ]; then
k6 run k6/bench.js --quiet --out cloud --env TEST_NAME=$test_name --env BENCHMARK=$benchmark
else
k6 run k6/bench.js --quiet --env TEST_NAME=$test_name --env BENCHMARK=$benchmark
fi

1 comment on commit f2c11e9

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

Benchmark 1 results

Server Requests/sec Latency (ms)
[Tailcall] -nan -nan
[Netflix DGS] -nan -nan
[Gqlgen] -nan -nan
[Caliban] -nan -nan
[async-graphql] -nan -nan
[Apollo GraphQL] -nan -nan

Benchmark 2 results

Server Requests/sec Latency (ms)
[Tailcall] -nan -nan
[Netflix DGS] -nan -nan
[Gqlgen] -nan -nan
[Caliban] -nan -nan
[async-graphql] -nan -nan
[Apollo GraphQL] -nan -nan

Please sign in to comment.