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 p2p helper and benchmark tests for local txns in the pool #13532

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

eastorski
Copy link
Member

No description provided.

@eastorski eastorski force-pushed the eastorski/txpool-local-benchmark branch 2 times, most recently from 67bf8a4 to 6aff334 Compare January 22, 2025 21:38
@eastorski eastorski force-pushed the eastorski/txpool-local-benchmark branch from 6aff334 to c0a66e4 Compare January 22, 2025 21:57
//
// This test sends transaction to node1 RPC which means they are local for node1
// P2P helper is binded to node1 port, that's why we measure performance of local txs processing
func TestSimpleLocalTxThroughputBenchmark(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use Golang's built-in benchmark feature: https://gobyexample.com/testing-and-benchmarking

@eastorski eastorski linked an issue Jan 23, 2025 that may be closed by this pull request
@yperbasis yperbasis requested a review from dvovk January 24, 2025 09:08
@mh0lt mh0lt merged commit 55c770c into main Jan 28, 2025
13 checks passed
@mh0lt mh0lt deleted the eastorski/txpool-local-benchmark branch January 28, 2025 11:05
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.

TxPool Local transaction benchmark
3 participants