Skip to content

Commit

Permalink
update bench.js
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester committed Jul 13, 2024
1 parent 68c143f commit 706703b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k6/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function() {
}

export function handleSummary(data) {
const requestCount = (data.metrics.http_reqs.values.count/duration).toFixed(0);
const requestCount = data.metrics.http_reqs.values.count/duration;
const avgLatency = Math.round(data.metrics.http_req_duration.values.avg * 100) / 100;
const requestCountMessage = `Requests/sec: ${requestCount}\n`;
const latencyMessage = `Latency: ${avgLatency} ms\n`;
Expand Down

2 comments on commit 706703b

@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] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx
2 { posts { title }}
[Tailcall] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx
3 { greet }
[Tailcall] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx

@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] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx
2 { posts { title }}
[Tailcall] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx
3 { greet }
[Tailcall] -nan -nan -nanx
[Netflix DGS] -nan -nan -nanx
[Hasura] -nan -nan -nanx
[GraphQL JIT] -nan -nan -nanx
[Gqlgen] -nan -nan -nanx
[Caliban] -nan -nan -nanx
[async-graphql] -nan -nan -nanx
[Apollo GraphQL] -nan -nan -nanx

Please sign in to comment.