Skip to content

Commit 477fa76

Browse files
committed
document benchmarks
1 parent 7df55d4 commit 477fa76

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

benchmarks/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Benchmark
2+
3+
Compare `apollo-datasource-http` with apollo's `apollo-datasource-rest`
4+
5+
```
6+
{
7+
'apollo-datasource-rest': { startTime: 86302094103500n, endTime: 86302716018200n },
8+
'apollo-datasource-http': { startTime: 86302111594200n, endTime: 86302736876100n }
9+
}
10+
Results for 1000 subsequent requests:
11+
apollo-datasource-rest | total time: 621914700ns (621.915ms)
12+
apollo-datasource-http | total time: 625281900ns (625.282ms)
13+
---
14+
apollo-datasource-http <> apollo-datasource-rest percent change: 0.541%
15+
```
16+
17+
**Result:** Difference of +-0.5%. You can use `apollo-datasource-http` without negative performance cost.

0 commit comments

Comments
 (0)