OSDN Git Service

Hulk did something
[bytom/vapor.git] / test / performance / rpc_test.go
diff --git a/test/performance/rpc_test.go b/test/performance/rpc_test.go
new file mode 100644 (file)
index 0000000..22f5c6c
--- /dev/null
@@ -0,0 +1,15 @@
+package performance
+
+import (
+       "testing"
+
+       "github.com/vapor/util"
+)
+
+// Test rpc call benchmark - 0.1 s/op
+func BenchmarkRpcCall(b *testing.B) {
+       b.ResetTimer()
+       for i := 0; i < b.N; i++ {
+               util.ClientCall("/net-info")
+       }
+}