Skip to content

Commit

Permalink
update variables
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester committed Jul 3, 2024
1 parent fd2e11d commit cb24eaf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions k6/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ export default function() {
}

export function handleSummary(data) {
const med_request_count = data.metrics.http_reqs.values.count;
const avg_latency = data.metrics.http_req_duration.values.avg;
const trimmed_avg_latency = Math.round(avg_latency * 100) / 100;
const request_count_message = `Requests/sec: ${med_request_count}\n`;
const latency_message = `Latency: ${trimmed_avg_latency} ms\n`;
const requestCount = data.metrics.http_reqs.values.count;
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`;

return {
stdout: request_count_message + latency_message,
stdout: requestCountMessage + latencyMessage,
};
}

1 comment on commit cb24eaf

@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.

Benchmark 1 results

Server Requests/sec Latency (ms)
[Tailcall] -nan -nan
[Netflix DGS] -nan -nan
[Gqlgen] -nan -nan
[Caliban] -nan -nan
[async-graphql] -nan -nan
[Apollo GraphQL] -nan -nan

Benchmark 2 results

Server Requests/sec Latency (ms)
[Tailcall] -nan -nan
[Netflix DGS] -nan -nan
[Gqlgen] -nan -nan
[Caliban] -nan -nan
[async-graphql] -nan -nan
[Apollo GraphQL] -nan -nan

Please sign in to comment.