Skip to content

chore(deps): update dependency typedoc-plugin-markdown to v4 #7230

chore(deps): update dependency typedoc-plugin-markdown to v4

chore(deps): update dependency typedoc-plugin-markdown to v4 #7230

Workflow file for this run

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@11bd71901bbe5b1630ceea73d27597364c9af683 # 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