Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Apollo Federation benchmarks #2524

Merged
merged 2 commits into from
Mar 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions website/src/pages/docs/comparison.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ import { Callout } from '@theguild/components'

This comparison highlights the main differences when using Yoga instead of Apollo Server.

### Better runtime performance

GraphQL Yoga has significantly less latency and much higher requests rate than Apollo Server in all [popular benchmarks](https://github.com/graphql-crystal/benchmarks).
including when using Apollo Federation - see benchmarks [here](https://github.com/ardatan/benchmarks/tree/federation#apollo-federation-server-benchmarks)
| Name | Language | Server | Latency avg | Requests |
| ---------------------------- | ------------- | --------------- | ---------------- | ------------- |
| [GraphQL Yoga with Response Cache](https://github.com/dotansimha/graphql-yoga) | Node.js | http | 46.54ms | 2.2kps |
| [GraphQL Yoga with JIT](https://github.com/dotansimha/graphql-yoga) | Node.js | http | 764.83ms | 120ps |
| [GraphQL Yoga](https://github.com/dotansimha/graphql-yoga) | Node.js | http | 916.90ms | 100ps |
| [Apollo Server](https://github.com/apollographql/apollo-server) | Node.js | Express | 1,234.12ms | 64ps |


### No Framework-specific Packages

One of the goals of `graphql-yoga` is to have as few `graphql-yoga` packages as possible.
Expand Down Expand Up @@ -91,9 +103,6 @@ GraphQL Yoga only has a fraction of the dependencies of Apollo Server, and in ge

GraphQL Yogas APIs are designed for code-splitting and thus have no side effects, where Apollo server specifies that is has side effects and thus, cannot be code splitted.

### Better runtime performance

GraphQL Yoga has significantly less latency and much higher requests rate than Apollo Server in all [popular benchmarks](https://github.com/graphql-crystal/benchmarks).

### GraphiQL

Expand Down