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

added benchmark script #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zloyrusskiy
Copy link
Contributor

No description provided.

@dizda
Copy link
Owner

dizda commented Apr 2, 2024

Sorry why using proxychains here @zloyrusskiy ?

@zloyrusskiy
Copy link
Contributor Author

I need a fast way to evaluate performance, I want to add serialization/deserialization of protocol stages for declarativeness and easier project support. Writing my own tool for benchmarks is a complex task, I didn't want to spend time on it. I thought iperf3 was a good option, but to make it work over socks5, you either need to compile a patched version or wrap it in a tricky way like this. But I looked at the overhead from this approach and realized that you are right. I'll try to explore this topic further.
For now, I'm looking towards:

https://pkolaczk.github.io/benchmarking-cassandra-with-rust-streams/

https://docs.rs/balter/0.4.0/balter/

https://github.com/tokio-rs/tokio/blob/e9ae5d4ce993d8c8611b86065f1fe26188fff0ca/stress-test/examples/simple_echo_tcp.rs

@dizda
Copy link
Owner

dizda commented Apr 3, 2024

This is interesting, let me know how that goes

@dizda
Copy link
Owner

dizda commented Apr 22, 2024

hey @zloyrusskiy

Any update on this? 🙏

@zloyrusskiy
Copy link
Contributor Author

I'm working on it. I integrate with https://github.com/bheisler/criterion.rs

@dizda
Copy link
Owner

dizda commented Jun 3, 2024

Thank you @zloyrusskiy

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.

2 participants