Skip to content

Instantly share code, notes, and snippets.

@soorajshankar
Created August 21, 2020 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soorajshankar/a77ff782e9f014892fa49309e59bec35 to your computer and use it in GitHub Desktop.
Save soorajshankar/a77ff782e9f014892fa49309e59bec35 to your computer and use it in GitHub Desktop.
hasura bench test
url: http://localhost:8080/v1/graphql
headers:
X-Hasura-Admin-Secret: my-secret
queries:
- name: InsertDeviceData
tools: [ autocannon]
execution_strategy: REQUESTS_PER_SECOND
duration: 10s
rps: 400
assert:
results: 7
query: |
mutation InsertDeviceData {
insert_device_data(objects: {data: "{test:1}", device_id: "TEst"}) {
affected_rows
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment