|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
吞吐量测试管理类 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_thruput & | instance () |
| 获取单例实例 | |
吞吐量测试管理类
单例模式管理多轮吞吐量测试,跟踪每轮测试进度并打印结果
|
inline |
添加新一轮测试并向指定数量的机器人发送测试消息
| aactorcount | 参与测试的Actor数量 |
| aeverycount | 每个Actor处理的消息数量 |
|
inline |
更新指定轮次的计数并在达到上限时打印结果
| arounds | 测试轮次索引 |
|
inline |
打印指定轮次的测试结果
| arounds | 测试轮次索引 |