graphql-engine/server/benchmarks/benchmark_sets/remote_schema/config.query.yaml
Brandon Simmons 7066b52777 dev.sh: support graphql-engine-pro
So you can do:

```
$ HASURA_GRAPHQL_EE_LICENSE_KEY=... scripts/dev.sh graphql-engine-pro
```

along with the `--prof-*` modes etc.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8894
GitOrigin-RevId: 2257749b2936cbd3230beb23e774ac92989e2fbc
2023-04-25 10:54:30 +00:00

239 lines
6.5 KiB
YAML

# This tells graphql-bench that it's testing a hasura instance and should
# collect some additional metrics:
extended_hasura_checks: true
headers:
X-Hasura-Admin-Secret: my-secret
Accept-Encoding: gzip
# Anchors to help us DRY below; settings here may be overridden selectively
constants:
scalars:
- &very_low_load 1
- &low_load 20
- &high_load 500
k6_custom: &k6_custom
tools: [k6]
execution_strategy: CUSTOM
settings: &settings
# This is equivalent to wrk2's approach:
executor: 'constant-arrival-rate'
timeUnit: '1s'
maxVUs: 500 # NOTE: required, else defaults to `preAllocatedVUs`
duration: '60s'
queries:
############################################################################
# A very simple query returning no rows. A baseline for the benchmark below.
- name: small_query_low_load
<<: *k6_custom
options:
k6:
# See note on Chinook.simple_query_low_load
discardResponseBodies: true
scenarios:
main:
<<: *settings
rate: *low_load
# tune this so it's just high enough that we can expect to not need
# to allocate during the test:
preAllocatedVUs: 10
query: |
query MyQuery {
heroes {
name
id
__typename
}
}
- name: small_query_low_load_customized
<<: *k6_custom
options:
k6:
# See note on Chinook.simple_query_low_load
discardResponseBodies: true
scenarios:
main:
<<: *settings
rate: *low_load
# tune this so it's just high enough that we can expect to not need
# to allocate during the test:
preAllocatedVUs: 10
query: |
query MyQuery {
foo {
heroes {
foo_name
foo_id
__typename
}
}
}
- name: big_query_low_load
<<: *k6_custom
options:
k6:
# See note on Chinook.simple_query_low_load
discardResponseBodies: true
scenarios:
main:
<<: *settings
rate: *very_low_load
# tune this so it's just high enough that we can expect to not need
# to allocate during the test:
preAllocatedVUs: 10
query: |
query MyQuery {
start {
hello
__typename
big {
hello
... on Big {
hello
big {
hello
__typename
... on Big {
hello
__typename
big {
hello
__typename
... on Big {
hello
__typename
big {
hello
__typename
... on Big {
hello
big {
hello
__typename
}
many {
hello
}
}
}
}
}
}
}
}
}
many {
... on Big {
hello
__typename
many {
... on Big {
hello
__typename
many {
... on Big {
hello
__typename
many {
... on Big {
hello
__typename
}
}
}
}
}
}
}
}
}
}
- name: big_query_low_load_customized
<<: *k6_custom
options:
k6:
# See note on Chinook.simple_query_low_load
discardResponseBodies: true
scenarios:
main:
<<: *settings
rate: *very_low_load
# tune this so it's just high enough that we can expect to not need
# to allocate during the test:
preAllocatedVUs: 10
query: |
query MyQuery {
big_foo {
start {
foo_hello
__typename
foo_big {
foo_hello
... on foo_Big_bar {
foo_hello
foo_big {
foo_hello
__typename
... on foo_Big_bar {
foo_hello
__typename
foo_big {
foo_hello
__typename
... on foo_Big_bar {
foo_hello
__typename
foo_big {
foo_hello
__typename
... on foo_Big_bar {
foo_hello
foo_big {
foo_hello
__typename
}
foo_many {
foo_hello
}
}
}
}
}
}
}
}
}
foo_many {
... on foo_Big_bar {
foo_hello
__typename
foo_many {
... on foo_Big_bar {
foo_hello
__typename
foo_many {
... on foo_Big_bar {
foo_hello
__typename
foo_many {
... on foo_Big_bar {
foo_hello
__typename
}
}
}
}
}
}
}
}
}
}
}