github.com/bytom/bytom@v1.1.2-0.20221014091027-bbcba3df6075/test/performance/rpc_test.go (about)

     1  package performance
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/bytom/bytom/util"
     7  )
     8  
     9  // Test rpc call benchmark - 0.1 s/op
    10  func BenchmarkRpcCall(b *testing.B) {
    11  	b.ResetTimer()
    12  	for i := 0; i < b.N; i++ {
    13  		util.ClientCall("/net-info")
    14  	}
    15  }