Created
August 21, 2020 11:26
-
-
Save soorajshankar/a77ff782e9f014892fa49309e59bec35 to your computer and use it in GitHub Desktop.
hasura bench test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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