graphql-engine/community/sample-apps/graphql-benchmark
hasura-bot aaf20b971f community: add graphql benchmark
GITHUB_PR_NUMBER: 9401
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9401

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7672
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
Co-authored-by: Praveen Durairaju <14110316+praveenweb@users.noreply.github.com>
GitOrigin-RevId: 9b0e9a3dd4cee1ef0a76fb45dee3d5e76d404512
2023-02-27 13:15:01 +00:00
..
hasura community: add graphql benchmark 2023-02-27 13:15:01 +00:00
nodejs community: add graphql benchmark 2023-02-27 13:15:01 +00:00
benchmark.sh community: add graphql benchmark 2023-02-27 13:15:01 +00:00
config.query.hasura.yaml community: add graphql benchmark 2023-02-27 13:15:01 +00:00
config.query.node.yaml community: add graphql benchmark 2023-02-27 13:15:01 +00:00
docker-compose.hasura.yml community: add graphql benchmark 2023-02-27 13:15:01 +00:00
docker-compose.node.yml community: add graphql benchmark 2023-02-27 13:15:01 +00:00
README.md community: add graphql benchmark 2023-02-27 13:15:01 +00:00
report.hasura.json community: add graphql benchmark 2023-02-27 13:15:01 +00:00
report.nodejs.json community: add graphql benchmark 2023-02-27 13:15:01 +00:00

GraphQL Benchmarking

Uses the Chinook sample database. Tested on macOS Ventura 13.1.

Instructions

  1. Checkout https://github.com/hasura/graphql-bench and build the docker container with make build_local_docker_image

  2. Run docker compose -f docker-compose.hasura.yml up -d to bootstrap Postgres with Chinook.

  3. After a few minutes check the Hasura docker logs to see if Hasura is running, which implies the database is now bootstrapped. Run docker compose -f docker-compose.hasura.yml down

  4. Run the benchmarks sh benchmark.sh

  5. Open the results on the GraphQL bench website https://hasura.github.io/graphql-bench/app/web-app/