Skip to content

Commit

Permalink
Remove slow benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
  • Loading branch information
ajnavarro committed Apr 14, 2023
1 parent ba837a7 commit ca11bb2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tm2/pkg/amino/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ import (
"runtime/debug"
"testing"

"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/amino/tests"
fuzz "github.com/google/gofuzz"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"

"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/amino/tests"
)

func BenchmarkBinary(b *testing.B) {
b.Skip("too slow")

cdc := amino.NewCodec()
for _, ptr := range tests.StructTypes {
b.Logf("case %v", reflect.TypeOf(ptr))
Expand All @@ -29,6 +32,8 @@ func BenchmarkBinary(b *testing.B) {
}

func BenchmarkBinaryPBBindings(b *testing.B) {
b.Skip("too slow")

cdc := amino.NewCodec().WithPBBindings()
for _, ptr := range tests.StructTypes {
b.Logf("case %v (pbbindings)", reflect.TypeOf(ptr))
Expand Down
1 change: 1 addition & 0 deletions tm2/pkg/crypto/ed25519/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func BenchmarkKeyGeneration(b *testing.B) {
b.Skip("too slow")
benchmarkKeygenWrapper := func(reader io.Reader) crypto.PrivKey {
return genPrivKey(reader)
}
Expand Down
1 change: 1 addition & 0 deletions tm2/pkg/crypto/secp256k1/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func BenchmarkKeyGeneration(b *testing.B) {
b.Skip("too slow")
benchmarkKeygenWrapper := func(reader io.Reader) crypto.PrivKey {
return genPrivKey(reader)
}
Expand Down

0 comments on commit ca11bb2

Please sign in to comment.