mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
d9ee31fb52
Supposedly more efficient since we can avoid some memory management dances. Memory pool agrees: goos: linux goarch: amd64 pkg: github.com/nspcc-dev/neo-go/pkg/core/mempool cpu: AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics │ pool.old │ pool.new │ │ sec/op │ sec/op vs base │ Pool/one,_incr_fee-16 12.44m ± 1% 12.51m ± 1% +0.55% (p=0.029 n=10) Pool/many,_same_fee-16 4.960m ± 2% 3.100m ± 1% -37.50% (p=0.000 n=10) Pool/many,_incr_fee-16 16.03m ± 2% 14.11m ± 1% -12.00% (p=0.000 n=10) Pool/one,_same_fee-16 1.742m ± 1% geomean 9.964m 5.556m -17.92% │ pool.old │ pool.new │ │ B/op │ B/op vs base │ Pool/one,_incr_fee-16 8.117Ki ± 120% 7.101Ki ± 128% -12.52% (p=0.022 n=10) Pool/many,_same_fee-16 3941.2Ki ± 0% 805.4Ki ± 0% -79.56% (p=0.000 n=10) Pool/many,_incr_fee-16 3936.2Ki ± 0% 829.8Ki ± 0% -78.92% (p=0.000 n=10) Pool/one,_same_fee-16 12.98Ki ± 10% geomean 501.2Ki 88.59Ki -66.47% │ pool.old │ pool.new │ │ allocs/op │ allocs/op vs base │ Pool/one,_incr_fee-16 28.00 ± 21% 24.00 ± 21% -14.29% (p=0.002 n=10) Pool/many,_same_fee-16 40.38k ± 0% 40.03k ± 0% -0.86% (p=0.000 n=10) Pool/many,_incr_fee-16 40.38k ± 0% 40.04k ± 0% -0.85% (p=0.000 n=10) Pool/one,_same_fee-16 23.00 ± 4% geomean 3.574k 969.8 -5.55% Signed-off-by: Roman Khimov <roman@nspcc.ru> |
||
---|---|---|
.. | ||
immutable.go | ||
item.go | ||
item_test.go | ||
json.go | ||
json_test.go | ||
reference.go | ||
serialization.go | ||
serialization_test.go | ||
type.go | ||
type_test.go |