neoneo-go/pkg/crypto
Roman Khimov 4803cc15c7 keys: add (*PublicKey).DecodeBytes benchmark
Attempts to reuse elliptic.Unmarshal() and elliptic.UnmarshalCompressed() lead
to this:
name                 old time/op    new time/op    delta
PublicDecodeBytes-8    59.5µs ± 2%    61.8µs ± 1%  +3.78%  (p=0.000 n=10+9)

name                 old alloc/op   new alloc/op   delta
PublicDecodeBytes-8    3.99kB ± 0%    4.27kB ± 0%  +6.81%  (p=0.000 n=9+10)

name                 old allocs/op  new allocs/op  delta
PublicDecodeBytes-8       136 ± 0%       135 ± 0%  -0.74%  (p=0.000 n=10+10)

So it makes no sense. Refs. #1319.
2021-08-25 22:35:39 +03:00
..
hash hash: suppress staticcheck warning 2021-05-12 22:52:32 +03:00
keys keys: add (*PublicKey).DecodeBytes benchmark 2021-08-25 22:35:39 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
verifiable.go crypto: add Hashable to VerifiableDecodable 2021-03-26 13:45:18 +03:00