Open Konard opened 3 years ago
Heya, you should be able to add a property to each query, debug: true
, and see in the process output what is happening (this is not supported for wrk2
atm, only k6
and autocannon
):
So it would look like:
url: 'http://linksplatform.ddns.net:29018/graphql'
queries:
- name: GetSingleLink
debug: true
tools: [k6, autocannon]
execution_strategy: REQUESTS_PER_SECOND
rps: 100
duration: 10s
query: |
query {
links(where: {
from_id: { _eq: 2 },
to_id: { _eq: 1 }
}) {
id
from_id
to_id
}
}
Maybe you need Content-Type: application/json
in headers?
url: 'http://linksplatform.ddns.net:29018/graphql'
headers:
Content-Type: "application/json"
queries:
- name: GetSingleLink
# ...
We are trying to benchmark our GraphQL server implementation for Doublets (database engine based on associative model of data).
This the YAML file we tried:
But all requests are ended up with 400 or 500 codes. And I'm not able to see exact error in the benchmark tool. Is there a way to see how the request is sent and what response is received via the benchmark tool?
If I use any other client (via UI,
insomnia
or plainJavaScript
ApolloClient
from the node.js) I do not get any errors with these requests. Onlygraphql-bench
is unable to make request for some reason.