Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple benchmark #17

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Simple benchmark #17

wants to merge 12 commits into from

Conversation

acerone85
Copy link
Collaborator

This MR introduces a new binary simple-benchmark implemented in a separate crate.
The commands provided are:

  • spammer (behaves as the spammer implemented in simple_spammer
  • listener (behaves as the listener implemented in simple_listener, with some tweaks to handle lost connections.
  • benchmark. Runs a spammer and listener in parallel for a determined amount of time (default 30 seconds), and in the case a output file is specified, statistics such as median, mean, and std-dev of latencies are gathered and printed to screen

to test the simple-benchmark, try:

make run-dsn

in one shell, and

RUST_LOG=info cargo run --bin simple-benchmark -- benchmark --tx-output $PATH_TO_CSV_RESULTS_FILE --run-for 60

in another

Copy link

Deployed at

@m-kus m-kus self-requested a review January 31, 2024 15:06
@acerone85 acerone85 changed the title Draft: simple benchmark Simple benchmark Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants