Skip to content

Commit

Permalink
newline at the end of resultsTable
Browse files Browse the repository at this point in the history
  • Loading branch information
daveads committed Jul 19, 2024
1 parent f12abde commit af52228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ sortedServers.forEach((server) => {
resultsTable += `\n|| [${formattedServerNames[server]}] | \`${formattedReqSecs}\` | \`${formattedLatencies}\` | \`${relativePerformance}x\` |`;
});

fs.appendFileSync(resultsFile, resultsTable + "\n");
fs.appendFileSync(resultsFile, resultsTable);

if (whichBench === 3) {
fs.appendFileSync(resultsFile, "\n<!-- PERFORMANCE_RESULTS_END -->");
fs.appendFileSync(resultsFile, "\n\n<!-- PERFORMANCE_RESULTS_END -->");

const finalResults = fs
.readFileSync(resultsFile, "utf-8")
Expand Down

3 comments on commit af52228

@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] 30,088.41 3.31 110.09x
[async-graphql] 1,884.76 53.38 6.90x
[Caliban] 1,548.24 64.47 5.66x
[Hasura] 1,465.79 67.96 5.36x
[GraphQL JIT] 1,300.23 76.63 4.76x
[Gqlgen] 768.94 129.04 2.81x
[Netflix DGS] 360.64 167.84 1.32x
[Apollo GraphQL] 273.32 358.97 1.00x
2 { posts { title }}
[Tailcall] 62,251.59 1.60 45.88x
[async-graphql] 9,520.93 10.59 7.02x
[Caliban] 9,221.94 11.20 6.80x
[Hasura] 2,390.49 41.81 1.76x
[Gqlgen] 2,173.51 47.62 1.60x
[Apollo GraphQL] 1,746.10 57.22 1.29x
[Netflix DGS] 1,581.93 69.69 1.17x
[GraphQL JIT] 1,356.84 73.58 1.00x
3 { greet }
[Caliban] 67,972.75 1.09 27.35x
[Tailcall] 64,474.35 1.56 25.94x
[async-graphql] 50,510.43 2.04 20.32x
[Gqlgen] 47,550.22 5.02 19.13x
[Netflix DGS] 8,241.23 14.84 3.32x
[Apollo GraphQL] 7,898.28 12.86 3.18x
[GraphQL JIT] 5,143.49 19.41 2.07x
[Hasura] 2,485.62 40.26 1.00x

@daveads
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@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] 30,409.71 3.27 110.05x
[async-graphql] 1,873.20 54.48 6.78x
[Caliban] 1,600.90 62.21 5.79x
[Hasura] 1,462.30 68.09 5.29x
[GraphQL JIT] 1,361.54 73.15 4.93x
[Gqlgen] 776.55 127.75 2.81x
[Netflix DGS] 362.06 176.59 1.31x
[Apollo GraphQL] 276.33 355.59 1.00x
2 { posts { title }}
[Tailcall] 62,788.51 1.58 45.02x
[async-graphql] 9,489.51 10.64 6.80x
[Caliban] 9,314.94 11.09 6.68x
[Hasura] 2,500.13 39.97 1.79x
[Gqlgen] 2,196.20 47.09 1.57x
[Apollo GraphQL] 1,765.05 56.58 1.27x
[Netflix DGS] 1,596.33 69.81 1.14x
[GraphQL JIT] 1,394.53 71.61 1.00x
3 { greet }
[Caliban] 68,805.92 1.03 26.28x
[Tailcall] 64,477.32 1.56 24.63x
[async-graphql] 51,466.22 1.95 19.66x
[Gqlgen] 47,533.43 5.06 18.16x
[Netflix DGS] 8,201.14 14.73 3.13x
[Apollo GraphQL] 8,065.29 12.56 3.08x
[GraphQL JIT] 5,237.54 19.06 2.00x
[Hasura] 2,617.90 38.23 1.00x

Please sign in to comment.