Commit 1e679687 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2c2e0b53
......@@ -920,6 +920,12 @@ func xlinkPipe(c1, c2 net.Conn) (*NodeLink, *NodeLink) {
return l1, l2
}
func BenchmarkLinkNetPipeRTT(b *testing.B) {
c1, c2 := net.Pipe()
l1, l2 := xlinkPipe(c1, c2)
benchmarkLinkRTT(b, l1, l2)
}
func BenchmarkLinkTCPRTT(b *testing.B) {
c1, c2 := xtcpPipe()
l1, l2 := xlinkPipe(c1, c2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment