github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/util/bench_test.go (about)

     1  package util
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func BenchmarkUint256MarshalJSON(b *testing.B) {
     8  	v := Uint256{0x01, 0x02, 0x03}
     9  
    10  	for i := 0; i < b.N; i++ {
    11  		_, _ = v.MarshalJSON()
    12  	}
    13  }