ET框架---BenchmarkComponent学习笔记

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所说。

猜你喜欢

转载自blog.csdn.net/norman_lin/article/details/79966421