Skip to content

Commit a041a75

Browse files
committed
crypto/elliptic: fix BenchmarkMarshalUnmarshal/Compressed
Change-Id: Ifbf4a95e5f315a88633ec0170625cadb087167c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/396934 Run-TryBot: Filippo Valsorda <[email protected]> Trust: Filippo Valsorda <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
1 parent eec47d0 commit a041a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/elliptic/elliptic_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ func BenchmarkMarshalUnmarshal(b *testing.B) {
364364
b.Run("Compressed", func(b *testing.B) {
365365
b.ReportAllocs()
366366
for i := 0; i < b.N; i++ {
367-
buf := Marshal(curve, x, y)
368-
xx, yy := Unmarshal(curve, buf)
367+
buf := MarshalCompressed(curve, x, y)
368+
xx, yy := UnmarshalCompressed(curve, buf)
369369
if xx.Cmp(x) != 0 || yy.Cmp(y) != 0 {
370370
b.Error("Unmarshal output different from Marshal input")
371371
}

0 commit comments

Comments
 (0)