upgrade to ethermint v0.21.0 #99

Closed
0xmuralik wants to merge 384 commits from murali/update-fork into main
2 changed files with 34 additions and 0 deletions
Showing only changes of commit 00b0d4411f - Show all commits

View File

@ -5,6 +5,7 @@ import (
"encoding/json" "encoding/json"
"math" "math"
"math/big" "math/big"
"os"
"testing" "testing"
"time" "time"
@ -77,6 +78,9 @@ type KeeperTestSuite struct {
var s *KeeperTestSuite var s *KeeperTestSuite
func TestKeeperTestSuite(t *testing.T) { func TestKeeperTestSuite(t *testing.T) {
if os.Getenv("benchmark") != "" {
t.Skip("Skipping Gingko Test")
}
s = new(KeeperTestSuite) s = new(KeeperTestSuite)
s.enableFeemarket = false s.enableFeemarket = false
s.enableLondonHF = true s.enableLondonHF = true

View File

@ -0,0 +1,30 @@
package keeper_test
import (
"testing"
"github.com/evmos/ethermint/x/evm/types"
)
func BenchmarkSetParams(b *testing.B) {
suite := KeeperTestSuite{}
suite.SetupTestWithT(b)
params := types.DefaultParams()
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
_ = suite.app.EvmKeeper.SetParams(suite.ctx, params)
}
}
func BenchmarkGetParams(b *testing.B) {
suite := KeeperTestSuite{}
suite.SetupTestWithT(b)
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
_ = suite.app.EvmKeeper.GetParams(suite.ctx)
}
}