Skip to content

mempool: Fix the benchmarks (backport #934) - #3893

Merged
hvanz merged 2 commits into
v0.38.xfrom
mergify/bp/v0.38.x/pr-934
Aug 29, 2024
Merged

hvanz merged 2 commits into
v0.38.xfrom
mergify/bp/v0.38.x/pr-934

Conversation

@mergify

@mergify mergify Bot commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

The mempool benchmarks were invalid due to an incorrect transaction payload. To see this, one may run go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$ against main from the mempool directory. These modificationss fix such a problem and add a new benchmark to exercicemempool:update.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

This is an automatic backport of pull request #934 done by [Mergify](https://mergify.com).

* fix mempool benchmarks
* add a benchmark for `mempool:update`

---------

Co-authored-by: Lasaro <[email protected]>
(cherry picked from commit c0a5715)

# Conflicts:
#	mempool/clist_mempool_test.go
#	mempool/mempool.go
@mergify
mergify Bot requested a review from a team as a code owner August 29, 2024 08:15
@mergify mergify Bot added the conflicts label Aug 29, 2024
@mergify

mergify Bot commented Aug 29, 2024

Copy link
Copy Markdown
Contributor Author

Cherry-pick of c0a5715 has failed:

On branch mergify/bp/v0.38.x/pr-934
Your branch is up to date with 'origin/v0.38.x'.

You are currently cherry-picking commit c0a57150c.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   mempool/bench_test.go
	modified:   mempool/cache_test.go
	modified:   mempool/reactor.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   mempool/clist_mempool_test.go
	both modified:   mempool/mempool.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@hvanz hvanz removed the conflicts label Aug 29, 2024
@hvanz
hvanz merged commit 969c8d1 into v0.38.x Aug 29, 2024
@hvanz
hvanz deleted the mergify/bp/v0.38.x/pr-934 branch August 29, 2024 08:30
mergify Bot added a commit that referenced this pull request Aug 29, 2024
The mempool
[benchmarks](https://github.com/cometbft/cometbft/blob/main/mempool/bench_test.go)
were invalid due to an incorrect transaction payload. To see this, one
may run `go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$`
against `main` from the `mempool` directory. These modificationss fix
such a problem and add a new benchmark to exercice`mempool:update`.

---

#### 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 #934 done by
[Mergify](https://mergify.com).

---------

Co-authored-by: Pierre Sutra <[email protected]>
Co-authored-by: hvanz <[email protected]>
(cherry picked from commit 969c8d1)
hvanz pushed a commit that referenced this pull request Sep 2, 2024
The mempool
[benchmarks](https://github.com/cometbft/cometbft/blob/main/mempool/bench_test.go)
were invalid due to an incorrect transaction payload. To see this, one
may run `go test -v -count 1 -bench ^BenchmarkCheckTx$ -test.run ^$`
against `main` from the `mempool` directory. These modificationss fix
such a problem and add a new benchmark to exercice`mempool:update`.

---

#### 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 #934 done by
[Mergify](https://mergify.com).<hr>This is an automatic backport of pull
request #3893 done by [Mergify](https://mergify.com).

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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