Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ on:
branches:
- main
- main-version-*
paths:
- 'src/HotChocolate/Fusion-vnext/**'
- '.github/workflows/benchmarks.yml'
push:
branches:
- main
paths:
- 'src/HotChocolate/Fusion-vnext/**'
- '.github/workflows/benchmarks.yml'

concurrency:
group: benchmarks-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -49,7 +55,7 @@ jobs:
{ key: 'ramping', label: 'Ramping', desc: '(0-500-0 VUs)' },
];
const runners = [
{ group: 'benchmarking-2', label: '2' },
{ group: 'benchmarking-1', label: '1' },
];

let md = '### Fusion Gateway Performance Results\n\n';
Expand All @@ -72,7 +78,7 @@ jobs:
}
md += '\n</details>\n\n---\n\n';
}
md += '*Runner 2 = benchmarking-2*';
md += '*Runner 1 = benchmarking-1*';

const encodedData = Buffer.from(JSON.stringify({})).toString('base64');
const timestamp = new Date().toUTCString();
Expand Down Expand Up @@ -121,10 +127,10 @@ jobs:
matrix:
test: [no-recursion, deep-recursion, variable-batch]
mode: [constant, ramping]
runner-group: [benchmarking-2]
runner-group: [benchmarking-1]
include:
- runner-group: benchmarking-2
runner-label: "Runner 2"
- runner-group: benchmarking-1
runner-label: "Runner 1"
- test: no-recursion
test-name: "Simple Composite Query"
- test: deep-recursion
Expand Down Expand Up @@ -262,7 +268,7 @@ jobs:
{ key: 'ramping', label: 'Ramping', desc: '(0-500-0 VUs)' },
];
const runners = [
{ group: 'benchmarking-2', label: '2' },
{ group: 'benchmarking-1', label: '1' },
];

let md = '### Fusion Gateway Performance Results\n\n';
Expand Down Expand Up @@ -302,7 +308,7 @@ jobs:
}
md += '\n</details>\n\n---\n\n';
}
md += '*Runner 2 = benchmarking-2*';
md += '*Runner 1 = benchmarking-1*';

// Build comment body with hidden data block
const encodedData = Buffer.from(JSON.stringify(allResults)).toString('base64');
Expand Down Expand Up @@ -432,7 +438,7 @@ jobs:
{ key: 'ramping', label: 'Ramping', desc: '(0-500-0 VUs)' },
];
const runners = [
{ group: 'benchmarking-2', label: '2' },
{ group: 'benchmarking-1', label: '1' },
];

let md = '### Fusion Gateway Performance Results\n\n';
Expand Down Expand Up @@ -472,7 +478,7 @@ jobs:
}
md += '\n</details>\n\n---\n\n';
}
md += '*Runner 2 = benchmarking-2*';
md += '*Runner 1 = benchmarking-1*';

// Build comment body
const encodedData = Buffer.from(JSON.stringify(allResults)).toString('base64');
Expand Down
Loading