BenchmarkComponent
请大家关注我的微博:@NormanLin_BadPixel坏像素
这就是一个测试用的,用来Ping远端地址的。而且一Ping就发送1,0000,0000次,1亿次哦。
try
{
await session.Call(new C2R_Ping());
++this.k;
if (this.k % 100000 != 0)
{
return;
}
long time2 = TimeHelper.ClientNow();
long time = time2 - this.time1;
this.time1 = time2;
Log.Info($"Benchmark k: {this.k} 每10W次耗时: {time} ms");
}
如Log所说。
本文介绍了一种通过Ping远程地址进行大规模基准测试的方法。测试发送1亿次Ping请求,并记录每10万次请求的耗时,以此评估网络性能。
1615

被折叠的 条评论
为什么被折叠?



