Skip to content

Commit

Permalink
fix: nginx delay
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 6f638c7 commit 196058b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ http {
resolver 8.8.8.8 valid=100s ipv6=off;
listen 3000;
location / {
echo_sleep 0.4; # Delay each request by 4ms
# Delay each request by 4ms
access_by_lua_block { ngx.sleep(0.004) }
proxy_set_header Host $proxy_host;
proxy_ssl_verify off;
proxy_ssl_server_name on;
Expand Down

1 comment on commit 196058b

@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,849.01 11.29 147.61x
[Caliban] 1,634.28 60.84 27.26x
[Hasura] 1,563.36 63.74 26.08x
[async-graphql] 1,520.69 65.51 25.37x
[Gqlgen] 670.26 148.53 11.18x
[Apollo GraphQL] 295.73 333.01 4.93x
[Netflix DGS] 59.95 188.26 1.00x
2 { posts { title }}
[Tailcall] 19,351.50 5.14 11.71x
[Caliban] 9,242.84 10.86 5.59x
[async-graphql] 8,920.26 11.21 5.40x
[Hasura] 2,624.41 38.10 1.59x
[Gqlgen] 2,334.92 43.38 1.41x
[Apollo GraphQL] 1,834.84 54.42 1.11x
[Netflix DGS] 1,652.69 65.92 1.00x
3 { greet }
[Tailcall] 65,706.90 1.53 24.74x
[Gqlgen] 52,460.20 5.19 19.75x
[async-graphql] 51,284.20 2.01 19.31x
[Caliban] 48,191.60 2.41 18.15x
[Netflix DGS] 8,582.21 14.11 3.23x
[Apollo GraphQL] 8,471.75 11.94 3.19x
[Hasura] 2,655.91 37.59 1.00x

Please sign in to comment.