Skip to content

Commit

Permalink
πŸ“ add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
agn-7 committed Dec 2, 2023
1 parent 86ed4f7 commit caa32e3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ You can also run the project via `docker-compose` (i.e. `docker compose up -d`)
```
SQLALCHEMY_DATABASE_URI=postgresql+asyncpg://<username>:<password>@ifsguid_db/<db-name>
```


---
Here is a benchmark of the API using by [wrk](https://github.com/wg/wrk) to demonstrate the performance of the service in different configuration:

| Service | Loading Strategy | WRK Configuration | Throughput (reqs/sec) |
|--------------|------------------|---------------------|-----------------------|
| Async | Joined | 4 threads, 10 conns | 132 |
| Async | Selectin | 4 threads, 10 conns | 112 |
| Sync | Lazy | 4 threads, 10 conns | 36 |
| Sync | Joined | 4 threads, 10 conns | 132 |
| Sync | Selectin | 4 threads, 10 conns | 114 |
| Async | Joined | 4 threads, 50 conns | 159 |
| Sync | Joined | 4 threads, 50 conns | 1 |
| Async | Joined | 4 threads, 15 conns | **126** |
| Sync | Joined | 4 threads, 15 conns | **69** |


![benchmark](https://github.com/agn-7/ifsguid-backend/assets/14202344/74c36824-0a11-424c-8622-f7e633a33d14)

0 comments on commit caa32e3

Please sign in to comment.