Documentation ¶
Index ¶
- func GetRandomDomain() string
- func TPS_SearchNetAddr(area *libp2parea.Area, maxCnt int)
- func TPS_SearchNetAddrOneByOne(area *libp2parea.Area, ...)
- func TPS_SearchNetAddrOneByOneProxy(area *libp2parea.Area, ...)
- func TPS_SendNeighborMsg(area *libp2parea.Area, recvId *nodeStore.AddressNet, content *[]byte, ...)
- func TPS_SendNeighborMsgWaitRequest(area *libp2parea.Area, ...)
- func TPS_SendP2pMsgProxyWaitRequest(area *libp2parea.Area, ...)
- func TPS_SendSearchSuperMsgProxy(area *libp2parea.Area, ...)
- func TPS_SendSearchSuperMsgProxyWaitRequest(area *libp2parea.Area, ...)
- func TPS_UnionApi(area *libp2parea.Area, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TPS_SearchNetAddr ¶
func TPS_SearchNetAddr(area *libp2parea.Area, maxCnt int)
* 测试SearchNetAddr的tps数据 * * 测试结果: 88000 - 92000
func TPS_SearchNetAddrOneByOne ¶
func TPS_SearchNetAddrOneByOne(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试 SearchNetAddrOneByOne 的tps数据 * * 测试条件: 香港单台服务器部署6个节点, 一个客户端节点, 每次开启10000个协程, 请求10000次, 重复执行十次的结果 * 测试结果:
func TPS_SearchNetAddrOneByOneProxy ¶
func TPS_SearchNetAddrOneByOneProxy(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试 SearchNetAddrOneByOneProxy 的tps数据 * * 测试条件: 香港单台服务器部署6个节点, 一个客户端节点, 每次开启10000个协程, 请求10000次, 重复执行十次的结果 * 测试结果: 2561 4807 5002 4852 5076 3514 4492 4835 5005 5081
func TPS_SendNeighborMsg ¶
func TPS_SendNeighborMsg(area *libp2parea.Area, recvId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试 SendNeighborMsg 的tps数据 * * 测试结果: 93000 - 106000
func TPS_SendNeighborMsgWaitRequest ¶
func TPS_SendNeighborMsgWaitRequest(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64)
* 测试 SendNeighborMsgWaitRequest 的tps数据 * * 测试结果: 91000 - 98000
func TPS_SendP2pMsgProxyWaitRequest ¶
func TPS_SendP2pMsgProxyWaitRequest(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试 SendP2pMsgProxyWaitRequest 的tps数据 * * 测试条件: 香港单台服务器部署6个节点, 一个客户端节点, 每次开启10000个协程, 请求10000次, 重复执行十次的结果 * 测试结果: 3979 9615 9756 10775 8000 6333 5219 4911 6146 4803
func TPS_SendSearchSuperMsgProxy ¶
func TPS_SendSearchSuperMsgProxy(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试SendSearchSuperMsgProxyWaitRequest的tps数据 * * 测试结果: 84000 - 94000
func TPS_SendSearchSuperMsgProxyWaitRequest ¶
func TPS_SendSearchSuperMsgProxyWaitRequest(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64)
* 测试 SendSearchSuperMsgProxyWaitRequest 的tps数据 * * 测试结果: 91000 - 98000
func TPS_UnionApi ¶
func TPS_UnionApi(area *libp2parea.Area, recvId, recvProxyId, senderProxyId *nodeStore.AddressNet, content *[]byte, maxCnt int, msgId uint64, resChan chan bool)
* 测试 UnionApi 的tps数据 * * 测试条件: 香港单台服务器部署6个节点, 一个客户端节点, 每次开启10000个协程, 请求10000次, 重复执行十次的结果 * 测试结果: 2066 3238 3337 3537 3451 3598 3365 3332 2637 2886
Types ¶
This section is empty.