mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
save (#2722)
This commit is contained in:
parent
d7159cd8bd
commit
2b804cdc35
@ -268,12 +268,12 @@ func BenchmarkDecodingAccount(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
for _, test := range accountCases {
|
||||
test := test
|
||||
encodedAccount := make([]byte, test.acc.EncodingLengthForStorage())
|
||||
b.Run(fmt.Sprint(test.name), func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
b.StopTimer()
|
||||
test.acc.Nonce = uint64(i)
|
||||
test.acc.Balance.SetUint64(uint64(i))
|
||||
encodedAccount := make([]byte, test.acc.EncodingLengthForStorage())
|
||||
|
||||
test.acc.EncodeForStorage(encodedAccount)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user