Skip to content

flbraun/django-graphql-benchmarks

 
 

Repository files navigation

django-graphql-benchmarks

Fork of jkimbo/django-graphql-benchmarks. The original project proved useful for discussions about graphene's performance (e.g. in graphql-python/graphene#268). To provide an up-to-date insight into the matter I revived the project.

differences to jkimbo/django-graphql-benchmarks

The Django app is no longer bound to be deployed on Heroku, but is built as a Docker container. This allows for deployment anywhere (including the very cost-efficient "localhost"). main runs on up-to-date dependencies, Python 3.10 and graphene v3. main_graphenev2_only is (or should) always the same as main, but only exposes a GraphQL endpoint provided by graphene v2.

setup + running

Prerequisites for running the benchmarks:

  1. A local version of the main and main_graphenev2_only branches
  2. Docker and Python 3.8+
  3. poetry
  4. mkdir -p results

You can use the run.sh script to deploy and bench the containers locally, or use it as a blueprint for other deployments.
run.sh requires a list of target Python versions as positional arguments, e.g. run.sh 3.9 3.10

latest results

latest results Benchmark ran on an AMD Ryzen 9 5900X with 64GB memory and 8 uWSGI workers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.0%
  • JavaScript 11.6%
  • Shell 8.7%
  • Dockerfile 1.7%