Skip to content

Commit

Permalink
increase wrk timeout to prevent timeout errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester committed Jul 15, 2024
1 parent feb1cc1 commit 3097063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrk/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ graphqlEndpoint="${1:-http://localhost:8000/graphql}"
whichBench=$2

if [ "$whichBench" == "2" ]; then
wrk -d 30 -t 4 -c 100 -s $(pwd)/wrk/wrk2.lua "$graphqlEndpoint"
wrk -d 30 -t 4 -c 100 -s $(pwd)/wrk/wrk2.lua "$graphqlEndpoint" --timeout 10
else
wrk -d 10 -t 4 -c 100 -s "$(pwd)/wrk/wrk${whichBench}.lua" "$graphqlEndpoint"
wrk -d 10 -t 4 -c 100 -s "$(pwd)/wrk/wrk${whichBench}.lua" "$graphqlEndpoint" --timeout 10
fi

2 comments on commit 3097063

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query Server Requests/sec Latency (ms) Relative
1 { posts { id userId title user { id name email }}}
[Tailcall] 9,008.50 11.08 152.33x
[async-graphql] 1,597.07 62.35 27.01x
[Caliban] 1,584.58 63.05 26.80x
[Hasura] 1,553.08 64.46 26.26x
[GraphQL JIT] 1,346.45 73.89 22.77x
[Gqlgen] 773.77 128.22 13.08x
[Apollo GraphQL] 272.56 359.87 4.61x
[Netflix DGS] 59.14 264.91 1.00x
2 { posts { title }}
[Tailcall] 19,414.70 5.12 14.11x
[async-graphql] 9,383.52 10.66 6.82x
[Caliban] 8,993.66 11.16 6.53x
[Hasura] 2,529.05 39.51 1.84x
[Gqlgen] 2,180.40 46.89 1.58x
[Apollo GraphQL] 1,764.96 56.56 1.28x
[Netflix DGS] 1,592.92 67.98 1.16x
[GraphQL JIT] 1,376.34 72.55 1.00x
3 { greet }
[Caliban] 67,937.10 1.10 26.26x
[Tailcall] 64,460.60 1.56 24.91x
[async-graphql] 50,757.20 2.01 19.62x
[Gqlgen] 47,854.80 5.16 18.49x
[Netflix DGS] 8,285.87 14.74 3.20x
[Apollo GraphQL] 8,124.16 12.49 3.14x
[GraphQL JIT] 5,273.72 18.93 2.04x
[Hasura] 2,587.51 38.57 1.00x

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Query Server Requests/sec Latency (ms) Relative
1 { posts { id userId title user { id name email }}}
[Tailcall] 8,694.89 11.48 151.74x
[Caliban] 1,576.64 63.11 27.52x
[async-graphql] 1,567.69 63.55 27.36x
[Hasura] 1,541.92 64.87 26.91x
[GraphQL JIT] 1,341.38 74.24 23.41x
[Gqlgen] 721.93 137.32 12.60x
[Apollo GraphQL] 261.71 374.82 4.57x
[Netflix DGS] 57.30 1.45 1.00x
2 { posts { title }}
[Tailcall] 19,298.20 5.15 14.23x
[async-graphql] 9,320.85 10.73 6.87x
[Caliban] 8,909.49 11.27 6.57x
[Hasura] 2,478.09 40.32 1.83x
[Gqlgen] 2,085.64 49.08 1.54x
[Apollo GraphQL] 1,690.08 59.06 1.25x
[Netflix DGS] 1,564.56 67.78 1.15x
[GraphQL JIT] 1,356.62 73.60 1.00x
3 { greet }
[Caliban] 69,518.50 1.03 27.95x
[Tailcall] 64,925.00 1.56 26.10x
[async-graphql] 51,540.80 2.01 20.72x
[Gqlgen] 45,793.50 5.28 18.41x
[Netflix DGS] 8,012.43 14.81 3.22x
[Apollo GraphQL] 7,966.49 12.69 3.20x
[GraphQL JIT] 5,304.38 18.83 2.13x
[Hasura] 2,487.43 40.11 1.00x

Please sign in to comment.