Skip to content

Commit

Permalink
Feat/update docs (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensneuse authored Nov 15, 2023
1 parent acce7ee commit 4aa8695
Show file tree
Hide file tree
Showing 2 changed files with 344 additions and 314 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ Please consider the v1 module as deprecated and move to v2 as soon as possible.
We have customers who pay us to maintain this library and steer the direction of the project.
[Contact us](https://wundergraph.com/contact/sales) if you're looking for commercial support, features or consulting.

## Performance

The architecture of this library is designed for performance, high-throughput and low garbage collection overhead.
The following benchmark measures the "overhead" of loading and resolving a GraphQL response from four static in-memory Subgraphs at 0,007459 ms/op.
In more complete end-to-end benchmarks, we've measured up to 8x more requests per second and 8x lower p99 latency compared to Apollo Router, which is written in Rust.

```shell
cd v2/pkg/engine
go test -run=nothing -bench=Benchmark_NestedBatchingWithoutChecks -memprofile memprofile.out -benchtime 3s && go tool pprof memprofile.out
goos: darwin
goarch: arm64
pkg: github.com/wundergraph/graphql-go-tools/v2/pkg/engine/resolve
Benchmark_NestedBatchingWithoutChecks-10 473186 7134 ns/op 52.00 MB/s 2086 B/op 36 allocs/op
```

## Tutorial

If you're here to learn how to use this library to build your own custom GraphQL Router or API Gateway,
Expand Down
Loading

0 comments on commit 4aa8695

Please sign in to comment.