simple graphql-modules, apollo server setup with modules utilizing GraphQL
yarn
yarn dev
We are testing three NodeJS versions
src/apollo.ts
Apollo with simple typeDefs and resolvers merged, with graphql-jit executorsrc/index.ts
Apollo setup with the graphql-modules, with graphql-jit executorsrc/helix.ts
Helix standard
Two profile dist apps:
yarn profile:flamegraph
0x flamegraphyarn profile:clinic
clinic doctor
hey: now put some load on it for 10 seconds
hey -n 200 -c 80 -cpus 1 -z 10s -m POST --disable-keepalive -H "client-name: readme" -H "client-version: 1.0.0" -H "X-Authorization: foo" -H "Content-Type: application/json" -H 'client-name: readme' -H 'client-version: 1.0.0' -d '{ "query": "{ version }" }' http://localhost:4000/graphql
Test if application works from commandline:
curl \
-X POST \
-H "Content-Type: application/json" \
-H 'client-name: readme' \
-H 'client-version: 1.0.0' \
-H "X-Authorization: FOO.BAR" \
--data '{ "query": "{ version }" }' \
http://localhost:4000/graphql
- GraphQL before GraphQL - https://www.youtube.com/watch?v=gb1R-fWP1Yw
- GraphQL at Facebook by Adam D.I. Kramer - https://www.youtube.com/watch?v=yKjIGL3dfcA