目录
step
- adb push所有附件到udisk目录
- adb push的文件添加执行权限
Latency Test(one-way latency)
地址后的第一个参数为消息大小,第二个参数为循环测试次数。
tcp
- ./local_lat tcp://wlan0:5555 1024 100000
- ./remote_lat tcp://10.193.50.19:5555 1024 100000
roundtrip count: 100000
average latency: 408.068 [us]
inproc
- ./inproc_lat 1024 100000
message size: 1024 [B]
roundtrip count: 100000
average latency: 65.277 [us]
Throughput Test
地址后的第一个参数为消息大小,第二个参数为循环测试次数。
tcp
- ./local_thr tcp://wlan0:5555 1024 100000
- ./remote_thr tcp://10.193.50.19:5555 1024 100000
message size: 1024 [B]
message count: 100000
mean throughput: 76217 [msg/s]
mean throughput: 624.374 [Mb/s]
inproc
- ./inproc_thr 1024 100000
message size: 1024 [B]
message count: 100000
mean throughput: 329352 [msg/s]
mean throughput: 2698.052 [Mb/s]
标签:1024,latency,tcp,inproc,100000,rk3308,ZeroMQ,ZMQ,message
From: https://www.cnblogs.com/jiangyibo/p/16935427.html