chore(deps): update dependency typescript to v5.6.3 #7140
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
name: Benchmark | |
env: | |
NODE_NO_WARNINGS: true | |
CI: true | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
federation-benchmark: | |
name: Federation Benchmark with ${{matrix.products_size}} Products | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
products_size: [3, 10, 50, 100, 1000] | |
steps: | |
- name: Checkout Master | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
- name: Setup env | |
uses: the-guild-org/shared-config/setup@main | |
with: | |
nodeVersion: 18 | |
- name: Build packages | |
run: yarn build | |
- name: Setup K6 | |
run: | | |
wget https://github.com/grafana/k6/releases/download/v0.37.0/k6-v0.37.0-linux-amd64.deb | |
sudo apt-get update | |
sudo apt-get install ./k6-v0.37.0-linux-amd64.deb | |
- name: GraphQL API | |
working-directory: ./benchmark/federation | |
run: | | |
yarn start & | |
yarn wait-on tcp:3000 | |
env: | |
PRODUCTS_SIZE: ${{matrix.products_size}} | |
- name: Federation | |
run: k6 -e ENDPOINT=federation run --out json=federation.json benchmark/federation/k6.js | |
- name: Stitching | |
uses: nick-fields/retry@v3 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 3 | |
command: | |
k6 -e ENDPOINT=stitching -e PRODUCTS_SIZE=${{matrix.products_size}} -e GITHUB_PR=${{ | |
github.event.number }} -e GITHUB_SHA=${{ github.sha }} -e | |
GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}} run --out json=stitching.json | |
benchmark/federation/k6.js | |
- name: Monolith | |
run: k6 -e ENDPOINT=monolith run --out json=monolith.json benchmark/federation/k6.js | |
- name: Compare | |
run: | |
node benchmark/compare monolith:monolith.json federation:federation.json | |
stitching:stitching.json |