-
Notifications
You must be signed in to change notification settings - Fork 637
test(mempool): Add two Update
benchmarks
#3873
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
Conversation
Results on
|
Update
benchmark testsUpdate
benchmarks
@@ -91,12 +91,6 @@ func (txs Txs) hashList() [][]byte { | |||
// Txs is a slice of transactions. Sorting a Txs value orders the transactions | |||
// lexicographically. | |||
|
|||
func (txs Txs) Len() int { return len(txs) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go API break => we can't backport to v0.38.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this field only for this benchmark? If so, can we extract it somehow differently to not break APIs jsut for the sake of testing. If we are using it somewhere else in the mempool lanes work then this function should go together in a PR with where it is useful in production, not here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we can just leave it there for v0.38.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also mark these functions as deprecated (even in v0.38.x).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we can leave them in 0.38.x, mark them as deprecated in v1.x and remove them later on.
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 27a4606) # Conflicts: # mempool/clist_mempool_test.go # mempool/reactor_test.go
@Mergifyio backport v0.38.x |
✅ Backports have been created
|
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 27a4606) # Conflicts: # mempool/bench_test.go # mempool/clist_mempool_test.go # mempool/reactor_test.go # types/tx.go
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments <hr>This is an automatic backport of pull request #3873 done by [Mergify](https://mergify.com). Co-authored-by: Hernán Vanzetto <15466498+hvanz@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments <hr>This is an automatic backport of pull request #3873 done by [Mergify](https://mergify.com). Co-authored-by: Hernán Vanzetto <15466498+hvanz@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 1013c80)
Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments <hr>This is an automatic backport of pull request #3873 done by [Mergify](https://mergify.com). --------- Co-authored-by: Hernán Vanzetto <15466498+hvanz@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: hvanz <hernan.vanzetto@gmail.com>
…3892) (#3957) Add new `BenchmarkUpdate` and `BenchmarkUpdateAndRecheck`. Also fix `BenchmarkCheckDuplicateTx`. --- #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments <hr>This is an automatic backport of pull request #3873 done by [Mergify](https://mergify.com).<hr>This is an automatic backport of pull request #3892 done by [Mergify](https://mergify.com). Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Add new
BenchmarkUpdate
andBenchmarkUpdateAndRecheck
.Also fix
BenchmarkCheckDuplicateTx
.PR checklist
.changelog
(we use unclog to manage our changelog)docs/
orspec/
) and code comments