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

created a bench tool for votes #4085

Merged

Conversation

lijunwangs
Copy link

@lijunwangs lijunwangs commented Dec 12, 2024

Problem

We have a bench tool for streamer which is tailored for regular transactions not for votes. I created a bench tool for votes by modeling the bench streamer.

Summary of Changes

The tool support sending votes via direct UDP or connection cache. It can be enhanced to do either UDP or QUIC later.

Fixes #

@lijunwangs lijunwangs marked this pull request as draft December 12, 2024 18:49
@lijunwangs lijunwangs marked this pull request as ready for review December 13, 2024 00:10
@lijunwangs lijunwangs force-pushed the vote_use_quic.client.bench_vote branch from 65547ef to d8b7f26 Compare December 13, 2024 00:15
Copy link

@behzadnouri behzadnouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tested that this successfully runs?

bench-vote/.gitignore Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
bench-vote/src/main.rs Outdated Show resolved Hide resolved
@lijunwangs
Copy link
Author

lijunwangs commented Dec 13, 2024

have you tested that this successfully runs?

Yes. With the following configurations:

server and client together
server only
client only
server and client across different nodes

Run the server:

sol@lijun-dev-ny:~/src/agave$ ./target/release/solana-bench-vote --use-connection-cache --num-recv-sockets 8 --num-producers 16 --server-only --server-address 0.0.0.0:11228 --verbose

Run the client:

./target/release/solana-bench-vote --num-recv-sockets 8 --num-producers 16 --client-only --server-address 139.178.67.243:11228 --use-connection-cache

Copy link

@behzadnouri behzadnouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lijunwangs lijunwangs merged commit af0a349 into anza-xyz:master Dec 17, 2024
51 checks passed
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