Skip to content

Commit

Permalink
- config dedupe true
Browse files Browse the repository at this point in the history
  • Loading branch information
laststylebender14 committed Oct 29, 2024
1 parent 52a2efe commit 571ae20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci-benchmark/benchmark.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema @server(port: 8000, hostname: "0.0.0.0") {
}

type Query @cache(maxAge: 30000) {
posts: [Post] @http(url: "http://jsonplaceholder.typicode.com/posts")
posts: [Post] @http(url: "http://jsonplaceholder.typicode.com/posts", dedupe: true)
}

type User {
Expand All @@ -20,5 +20,5 @@ type Post {
userId: Int!
title: String!
body: String!
user: User @http(url: "http://jsonplaceholder.typicode.com/users/{{.value.userId}}")
user: User @http(url: "http://jsonplaceholder.typicode.com/users/{{.value.userId}}", dedupe: true)
}
4 changes: 2 additions & 2 deletions ci-benchmark/nginx-benchmark.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ schema
}

type Query {
posts: [Post] @http(url: "http://jsonplaceholder.typicode.com/posts")
posts: [Post] @http(url: "http://jsonplaceholder.typicode.com/posts", dedupe: true)
}

type User {
Expand All @@ -22,5 +22,5 @@ type Post {
userId: Int!
title: String!
body: String!
user: User @http(url: "http://jsonplaceholder.typicode.com/users/{{value.userId}}")
user: User @http(url: "http://jsonplaceholder.typicode.com/users/{{value.userId}}", dedupe: true)
}

1 comment on commit 571ae20

@github-actions
Copy link

Choose a reason for hiding this comment

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

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 3.90ms 1.98ms 30.27ms 82.97%
Req/Sec 6.64k 0.95k 13.17k 95.00%

792581 requests in 30.04s, 3.97GB read

Requests/sec: 26384.44

Transfer/sec: 135.42MB

Please sign in to comment.