Skip to content

[Fusion] Align the k6 benchmarks with graphql-federation-benchmarks - #10652

Merged
michaelstaib merged 3 commits into
ChilliCream:mainfrom
michaelstaib:mst/benchmark-infra
Oct 21, 2026
Merged

michaelstaib merged 3 commits into
ChilliCream:mainfrom
michaelstaib:mst/benchmark-infra

Conversation

@michaelstaib

Copy link
Copy Markdown
Member

No description provided.

Move the composite schema benchmarks to k6/gf and add the same benchmarks
for Apollo Federation subgraphs under k6/af.

- Gateway: use the published settings (lowercase "fusion" client with
  RemoveAllLoggers, MaxConnectionsPerServer 256, Authorization header
  propagation, disableDefaultSecurity, no ThreadPool minimum) and the
  published gateway.far. The published FusionPoolDiagnostics replaces the
  two unused pool listeners.
- Source schemas: take the published code (request interceptor,
  BENCHMARK_SUBGRAPH_DELAY_MS latency middleware, MapGraphQLHttp, lookup
  tables in reviews) and schemas.
- k6: deep-recursion.js is the published k6.js, no-recursion.js uses the
  same harness. run-single-benchmark.sh uses the published CPU pinning
  profiles, a constant-latency mode and a discarded warmup run.
- af: the published Apollo Federation subgraphs and Fusion gateway, built
  against the repository projects.
- af source schemas keep default security like the published ones and only
  stop enforcing the cost limit, which this repository's cost analysis
  exceeds for the gateway's entity requests.
- The gf gateway enables runtime-async like the published net11 build.
- run-single-benchmark.sh selects the pinning profile from all hardware
  threads (16 or more), passes GATEWAY_ENDPOINT, stops leftover services
  before starting, reads k6 rate metrics from their exported value, leaves
  runs with failed requests or checks out, and reports the median run by
  requests per second.
- CI runs the constant-latency mode and shows error_rate as a percentage.
- eShop.Inventory drops the unused parent parameter.
@michaelstaib
michaelstaib merged commit c8143ee into ChilliCream:main Oct 21, 2026
152 checks passed
@michaelstaib
michaelstaib deleted the mst/benchmark-infra branch October 21, 2026 00:19
This was referenced Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant