Skip to content

Commit c0d63e2

Browse files
committed
added simple apache bench performence tests
1 parent 4c39798 commit c0d63e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ deploy_dev:
3737
source env.hosts.prod && ssh $$DJANGO_DEV_HOST -t "cd $$DJANGO_DEV_PATH && COMPOSE_FILE=$$COMPOSE_DEV docker-compose exec django ls"
3838
source env.hosts.prod && ssh $$DJANGO_DEV_HOST -t "cd $$DJANGO_DEV_PATH && COMPOSE_FILE=$$COMPOSE_DEV docker-compose exec django killall -TERM uvicorn"
3939

40+
ab-graphql:
41+
ab -p tests/graphql-autocomplete-post.json -T application/json -c 10 -n 2000 http://gemeindescan.ch/graphql/
42+
43+
ab-html:
44+
ab -c 10 -n 2000 http://gemeindescan.ch/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
json='{"operationName":"getmunicipalities","variables":{"q":"z"},"query":"query getmunicipalities($q: String!) {\n municipalities(name_Icontains: $q) {\n edges {\n node {\n bfsNumber\n fullname\n __typename\n }\n __typename\n }\n __typename\n }\n}\n"}'

0 commit comments

Comments
 (0)