accounts: using testing.B.Loop

Signed-off-by: yajianggroup <yajianggroup@outlook.com>
This commit is contained in:
yajianggroup 2025-09-23 14:58:44 +08:00
parent 2872242045
commit df8aa90c83

View file

@ -63,7 +63,7 @@ func BenchmarkUnpack(b *testing.B) {
b.ResetTimer() b.ResetTimer()
var result any var result any
for range b.N { for b.Loop() {
result, _ = abi.Unpack("method", encb) result, _ = abi.Unpack("method", encb)
} }
_ = result _ = result