This is just a test to check the simple performance of axum.
The backend exposes a REST endpoint for POST on localhost:300/user
.
The response is equal to the input.
The client creates a NUM_USERS
or number of CPU cores detected, random usernames in a
vector and sends them to the backend.
You can start the backend with:
cargo run --release --bin backend
You can start the client with:
cargo run --release --bin client
This will take the cpu core count as the number of users. You can override this with:
NUM_USERS=100 cargo run --release --bin client