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

Continuous client #362

Merged
merged 3 commits into from
Jun 15, 2018
Merged

Continuous client #362

merged 3 commits into from
Jun 15, 2018

Conversation

sakridge
Copy link
Member

No description provided.

@sakridge sakridge requested a review from garious June 15, 2018 05:18
Copy link
Contributor

@garious garious left a comment

Choose a reason for hiding this comment

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

Is this work tied to a v0.7.0 issue?

let time = Duration::new(time_sec, 0);
let now = Instant::now();
while now.elapsed() < time {
println!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move everything within the while loop to a separate function?

let signing_start = Instant::now();
let transactions: Vec<_> = keypair_pairs
.par_iter()
.map(|chunk| Transaction::new(&chunk[0], chunk[1].pubkey(), 1, last_id))
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious, how are you calculating TPS if TX signing is inside the loop?

Copy link
Member Author

Choose a reason for hiding this comment

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

the other thread is sampling it.

@codecov
Copy link

codecov bot commented Jun 15, 2018

Codecov Report

Merging #362 into master will decrease coverage by 0.08%.
The diff coverage is 46.15%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #362      +/-   ##
=========================================
- Coverage   90.78%   90.7%   -0.09%     
=========================================
  Files          36      36              
  Lines        3482    3484       +2     
=========================================
- Hits         3161    3160       -1     
- Misses        321     324       +3
Impacted Files Coverage Δ
src/packet.rs 92.3% <ø> (ø) ⬆️
src/thin_client.rs 87.57% <46.15%> (-0.43%) ⬇️
src/entry_writer.rs 82.85% <0%> (-5.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d9e032...06531d0. Read the comment docs.

@sakridge
Copy link
Member Author

I don't believe the work has a specific 0.7 issue other than general TPS monitoring/improvement.

Also retry for get_last_id/transaction_count if dropped.
@garious garious merged commit 94ededb into solana-labs:master Jun 15, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
willhickey pushed a commit to willhickey/solana that referenced this pull request Mar 23, 2024
willhickey pushed a commit that referenced this pull request Mar 23, 2024
…) (#362)

Bump platform tools version (#35330)

Co-authored-by: Dmitri Makarov <[email protected]>
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.

3 participants