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

Use batch send in bench-tps to send transactions #27527

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Sep 1, 2022

Problem

The bench-tps performance is not great when QUIC is used for sending transactions.

Summary of Changes

The client was sending individual transaction from batch one at a time, and waiting for the QUIC to finish sending it. This throttles the transaction send rate.
This PR implements a batch_send wrapper using the existing client APIs, and uses that that in the bench-tps client.

Fixes #

@pgarg66 pgarg66 marked this pull request as ready for review September 1, 2022 03:43
Copy link
Contributor

@ryleung-solana ryleung-solana left a comment

Choose a reason for hiding this comment

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

LGTM

@pgarg66 pgarg66 added the automerge Merge this Pull Request automatically once CI passes label Sep 1, 2022
@mergify mergify bot merged commit 49df1c4 into solana-labs:master Sep 1, 2022
@pgarg66 pgarg66 deleted the tpu-client-batch-send branch September 1, 2022 17:32
@pgarg66 pgarg66 added the v1.11 label Sep 1, 2022
mergify bot pushed a commit that referenced this pull request Sep 1, 2022
* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs
mergify bot added a commit that referenced this pull request Sep 1, 2022
…27560)

* Use batch send in bench-tps to send transactions (#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Sep 10, 2022
…s#27527) (solana-labs#27560)

* Use batch send in bench-tps to send transactions (solana-labs#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Sep 13, 2022
…s#27527) (solana-labs#27560)

* Use batch send in bench-tps to send transactions (solana-labs#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Sep 13, 2022
…s#27527) (solana-labs#27560)

* Use batch send in bench-tps to send transactions (solana-labs#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Sep 13, 2022
…s#27527) (solana-labs#27560)

* Use batch send in bench-tps to send transactions (solana-labs#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
lijunwangs pushed a commit that referenced this pull request Sep 14, 2022
…27560)

* Use batch send in bench-tps to send transactions (#27527)

* Use batch send in bench-tps to send transactions

* serialize using par iter

(cherry picked from commit 49df1c4)

# Conflicts:
#	tpu-client/src/tpu_client.rs

* fix merge issues

Co-authored-by: Pankaj Garg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants