tutus-chain/pkg/util/bench_test.go

14 lines
165 B
Go
Executable File

package util
import (
"testing"
)
func BenchmarkUint256MarshalJSON(b *testing.B) {
v := Uint256{0x01, 0x02, 0x03}
for b.Loop() {
_, _ = v.MarshalJSON()
}
}