fast-socks5 icon indicating copy to clipboard operation
fast-socks5 copied to clipboard

added benchmark script

Open zloyrusskiy opened this issue 1 year ago • 10 comments

zloyrusskiy avatar Apr 01 '24 21:04 zloyrusskiy

Sorry why using proxychains here @zloyrusskiy ?

dizda avatar Apr 02 '24 01:04 dizda

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

zloyrusskiy avatar Apr 02 '24 19:04 zloyrusskiy

This is interesting, let me know how that goes

dizda avatar Apr 03 '24 02:04 dizda

hey @zloyrusskiy

Any update on this? 🙏

dizda avatar Apr 22 '24 06:04 dizda

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

zloyrusskiy avatar May 02 '24 09:05 zloyrusskiy

Thank you @zloyrusskiy

dizda avatar Jun 03 '24 02:06 dizda