Skip to content

Commit 7e95d84

Browse files
authored
fix(benchmarks): rename subtree benchmark functions (#37)
1 parent 0e803da commit 7e95d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subtree_benchmark_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/require"
1212
)
1313

14-
func BenchmarkSubtree_AddNode(b *testing.B) {
14+
func BenchmarkSubtreeAddNode(b *testing.B) {
1515
st, err := subtree.NewIncompleteTreeByLeafCount(b.N)
1616
require.NoError(b, err)
1717

@@ -33,7 +33,7 @@ func BenchmarkSubtree_AddNode(b *testing.B) {
3333
}
3434
}
3535

36-
func BenchmarkSubtree_Serialize(b *testing.B) {
36+
func BenchmarkSubtreeSerialize(b *testing.B) {
3737
st, err := subtree.NewIncompleteTreeByLeafCount(b.N)
3838
require.NoError(b, err)
3939

@@ -52,7 +52,7 @@ func BenchmarkSubtree_Serialize(b *testing.B) {
5252
assert.GreaterOrEqual(b, len(ser), 48*b.N)
5353
}
5454

55-
func BenchmarkSubtree_SerializeNodes(b *testing.B) {
55+
func BenchmarkSubtreeSerializeNodes(b *testing.B) {
5656
st, err := subtree.NewIncompleteTreeByLeafCount(b.N)
5757
require.NoError(b, err)
5858

0 commit comments

Comments
 (0)