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

chore: commit at the end of benchmark #5229

Merged
merged 2 commits into from
May 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions x/concentrated-liquidity/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"math"
"math/rand"
"testing"
"time"

"github.com/cosmos/cosmos-sdk/simapp"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -220,9 +219,8 @@ func BenchmarkSwapExactAmountIn(b *testing.B) {
fmt.Println("num_ticks_traversed", len(liquidityNet))
fmt.Println("current_tick", currentTick)

// Increase block time so that some incentives uptime accumulator update logic
// isn't a no-op.
s.Ctx = s.Ctx.WithBlockTime(s.Ctx.BlockTime().Add(time.Second))
// Commit the block so that position updates are propagated to IAVL.
s.Commit()

// Fund swap amount.
simapp.FundAccount(s.App.BankKeeper, s.Ctx, s.TestAccs[0], sdk.NewCoins(largeSwapInCoin))
Expand Down