mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
accounts: using testing.B.Loop
Signed-off-by: yajianggroup <yajianggroup@outlook.com>
This commit is contained in:
parent
2872242045
commit
df8aa90c83
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ func BenchmarkUnpack(b *testing.B) {
|
|||
b.ResetTimer()
|
||||
|
||||
var result any
|
||||
for range b.N {
|
||||
for b.Loop() {
|
||||
result, _ = abi.Unpack("method", encb)
|
||||
}
|
||||
_ = result
|
||||
|
|
|
|||
Loading…
Reference in a new issue