ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::test_thruput Class Reference

吞吐量测试管理类 More...

#include <actor_robot.h>

Public Member Functions

void change_rounds (int arounds)
 更新指定轮次的计数并在达到上限时打印结果
void add_rounds (int32_t aactorcount, int32_t aeverycount)
 添加新一轮测试并向指定数量的机器人发送测试消息
void print (int arounds)
 打印指定轮次的测试结果
void release ()
 释放所有轮次数据

Static Public Member Functions

static test_thruputinstance ()
 获取单例实例

Detailed Description

吞吐量测试管理类

单例模式管理多轮吞吐量测试,跟踪每轮测试进度并打印结果

Member Function Documentation

◆ add_rounds()

void ngl::test_thruput::add_rounds ( int32_t aactorcount,
int32_t aeverycount )
inline

添加新一轮测试并向指定数量的机器人发送测试消息

Parameters
aactorcount参与测试的Actor数量
aeverycount每个Actor处理的消息数量

◆ change_rounds()

void ngl::test_thruput::change_rounds ( int arounds)
inline

更新指定轮次的计数并在达到上限时打印结果

Parameters
arounds测试轮次索引

◆ print()

void ngl::test_thruput::print ( int arounds)
inline

打印指定轮次的测试结果

Parameters
arounds测试轮次索引

The documentation for this class was generated from the following file: