File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ func TestBuilderTEA(t *testing.T) {
74
74
func BenchmarkNewBuilder128 (b * testing.B ) {
75
75
test := make ([]byte , 128 )
76
76
_ , _ = rand .Read (test )
77
+ b .SetBytes (int64 (len (test )))
77
78
b .StartTimer ()
78
79
b .RunParallel (func (pb * testing.PB ) {
79
80
for pb .Next () {
@@ -85,6 +86,7 @@ func BenchmarkNewBuilder128(b *testing.B) {
85
86
func BenchmarkNewBuilder128_3 (b * testing.B ) {
86
87
test := make ([]byte , 128 )
87
88
_ , _ = rand .Read (test )
89
+ b .SetBytes (int64 (len (test )))
88
90
b .StartTimer ()
89
91
b .RunParallel (func (pb * testing.PB ) {
90
92
for pb .Next () {
@@ -100,6 +102,7 @@ func BenchmarkNewBuilder128_3(b *testing.B) {
100
102
func BenchmarkNewBuilder128_5 (b * testing.B ) {
101
103
test := make ([]byte , 128 )
102
104
_ , _ = rand .Read (test )
105
+ b .SetBytes (int64 (len (test )))
103
106
b .StartTimer ()
104
107
b .RunParallel (func (pb * testing.PB ) {
105
108
for pb .Next () {
You can’t perform that action at this time.
0 commit comments