Skip to content

Commit 24709de

Browse files
committed
Added small section about benchmarks
1 parent e3f36b5 commit 24709de

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,18 @@ async def main() -> None:
422422
# You don't need to close Database Pool by yourself,
423423
# rust does it instead.
424424

425-
```
425+
```
426+
427+
## Benchmarks
428+
We have made some benchmark to compare `PSQLPy`, `AsyncPG`, `Psycopg3`.
429+
Main idea is do not compare clear drivers because there are a few situations in which you need to use only driver without any other dependencies.
430+
431+
**So infrastructure consists of:**
432+
1) AioHTTP
433+
2) PostgreSQL driver (`PSQLPy`, `AsyncPG`, `Psycopg3`)
434+
3) PostgreSQL v15. Server is located in other part of the world, because we want to simulate network problems.
435+
4) Grafana (dashboards)
436+
5) InfluxDB
437+
6) JMeter (for load testing)
438+
439+
The results are very promising! `PSQLPy` is faster than `AsyncPG` at best by 2 times, at worst by 45%. `PsycoPG` is 3.5 times slower than `PSQLPy` in the worst case, 60% in the best case.

0 commit comments

Comments
 (0)