Skip to content

Commit

Permalink
chore: update benchmark configs for realistic
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Oct 1, 2024
1 parent 2268c07 commit f1e7c2a
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") @upstream(baseURL: "http://jsonp
}

type Query @cache(maxAge: 30000) {
posts: [Post] @http(path: "/posts")
posts: [Post] @http(path: "/posts", dedupe: true)
}

type User {
Expand All @@ -20,5 +20,5 @@ type Post {
userId: Int!
title: String!
body: String!
user: User @http(path: "/users/{{.value.userId}}")
user: User @http(path: "/users/{{.value.userId}}", dedupe: true)
}
4 changes: 2 additions & 2 deletions ci-benchmark/wrk.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wrk.method = "POST"
wrk.body = '{"operationName":null,"variables":{},"query":"{posts{title}}"}'
wrk.body = '{"operationName":null,"variables":{},{"query": "{posts {id,userId, title, user{id, name, email}}}"}}'
wrk.headers["Connection"] = "keep-alive"
wrk.headers["Content-Type"] = "application/json"
wrk.headers["Content-Type"] = "application/json"

1 comment on commit f1e7c2a

@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.79ms 5.99ms 103.70ms 98.66%
Req/Sec 7.58k 1.12k 13.97k 72.67%

907503 requests in 30.10s, 186.94MB read

Requests/sec: 30150.83

Transfer/sec: 6.21MB

Please sign in to comment.