6d10cdc2f6
Reflection adds some real cost to it: name old time/op new time/op delta DecodeBinary-8 3.14µs ± 5% 2.89µs ± 3% -8.19% (p=0.000 n=10+10) DecodeJSON-8 12.6µs ± 3% 13.0µs ± 1% +3.77% (p=0.000 n=10+10) DecodeFromBytes-8 2.73µs ± 2% 2.37µs ± 1% -13.12% (p=0.000 n=9+9) name old alloc/op new alloc/op delta DecodeBinary-8 1.82kB ± 0% 1.75kB ± 0% -3.95% (p=0.000 n=10+10) DecodeJSON-8 3.49kB ± 0% 3.49kB ± 0% ~ (all equal) DecodeFromBytes-8 1.44kB ± 0% 1.37kB ± 0% -5.00% (p=0.000 n=10+10) name old allocs/op new allocs/op delta DecodeBinary-8 29.0 ± 0% 26.0 ± 0% -10.34% (p=0.000 n=10+10) DecodeJSON-8 58.0 ± 0% 58.0 ± 0% ~ (all equal) DecodeFromBytes-8 21.0 ± 0% 18.0 ± 0% -14.29% (p=0.000 n=10+10) |
||
---|---|---|
.. | ||
attribute.go | ||
attribute_test.go | ||
attrtype.go | ||
attrtype_string.go | ||
bench_test.go | ||
conflicts.go | ||
doc.go | ||
helper_test.go | ||
not_valid_before.go | ||
notary_assisted.go | ||
oracle.go | ||
oracle_test.go | ||
oracleresponsecode_string.go | ||
reserved.go | ||
signer.go | ||
signer_test.go | ||
transaction.go | ||
transaction_test.go | ||
witness.go | ||
witness_scope.go | ||
witness_scope_string.go | ||
witness_scope_test.go | ||
witness_test.go |