Skip to content

Commit

Permalink
GraphQL benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
hallee committed Mar 18, 2019
1 parent 8fde601 commit e8948e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Benchmarking/query.json
@@ -0,0 +1 @@
{"query":"{\n tests {\n nodes {\n title\n meta {\n published\n }\n }\n }\n}\n"}
3 changes: 3 additions & 0 deletions Benchmarking/vegeta.txt
@@ -0,0 +1,3 @@
POST http://localhost:8080/graphql
Content-Type: application/json
@./query.json
3 changes: 3 additions & 0 deletions benchmark.sh
@@ -0,0 +1,3 @@
#!/bin/bash
cd Benchmarking
vegeta attack -rate=60 -duration=6s -timeout=10s -targets=./vegeta.txt | vegeta report

0 comments on commit e8948e1

Please sign in to comment.