tps & caps

tps

  每秒事务处理量 - 性能测试的术语介绍
  TPS(Transaction Per Second)
  每秒钟系统能够处理的交易或事务的数量。它是衡量系统处理能力的重要指标。TPS是LoadRunner中重要的性能参数指标。
  改善:是指从现有的设备、材料、劳动力及产品的制造方法里发现浪费,运用现场的智慧来消除浪费。
  现场的改善一般式指作业的改善。

CAPS (Call Attempts Per Second)每秒建立呼叫数量。 CAPS乘以3600就是BHCA(忙时呼叫量)了。 BHCA是忙时呼叫量的缩写,主要测试内容为:在一小时之内,系统能建立通话连接的绝对数量值。测试结果是一个极端能力的反映,它反映了设备的软件和硬件的综合性能。BHCA值最后体现为CAPS(每秒建立呼叫数量)

 
#ifdef TPS_EASYMESH bool db::set_sta_freq_caps(const sMacAddr &sta_mac) { std::shared_ptr<Station> pSta = get_station(sta_mac); if (!pSta) { LOG(WARNING) << __FUNCTION__ << " - station " << sta_mac << " does not exist!"; return false; } std::string path_to_sta = pSta->dm_path; std::string sta_caps; if (!path_to_sta.empty()) { if (!m_ambiorix_cl->get_param<>(sta_caps, path_to_sta, "ClientCapabilities")) { LOG(ERROR) << "failed to get ClientCapabilities of sta " << sta_mac; return false; } else { LOG(ERROR) << "get ClientCapabilities of sta " << sta_mac << "succeeded!"; LOG(ERROR) << "ClientCapabilities: " << sta_caps; } } else { LOG(ERROR) << "failed to get sta path of sta " << sta_mac; return false; } std::vector<uint8_t> data; std::istringstream iss(clientCapabilities); std::string hexByte; while (iss >> hexByte) { try { // Convert each hex string to a byte unsigned int byteVal = std::stoul(hexByte, nullptr, 16); data.push_back(static_cast<uint8_t>(byteVal)); } catch (...) { // Ignore invalid hex strings (e.g., empty or non-hex) continue; } } // Search for Supported Operating Classes Tag (0x3B) bool tagFound = false; uint8_t tagLength = 0; std::vector<uint8_t> operatingClasses; for (size_t i = 0; i < data.size(); i++) { if (data[i] == 0x3B) { // Found the tag, next byte is the length if (i + 1 < data.size()) { tagLength = data[i + 1]; size_t dataStartIndex = i + 2; if (dataStartIndex + tagLength <= data.size()) { // Extract the operating classes data (current + alternates) operatingClasses.insert(operatingClasses.end(), data.begin() + dataStartIndex, data.begin() + dataStartIndex + tagLength); tagFound = true; break; } } } } if (!tagFound || operatingClasses.empty()) { // Tag not found or no data, leave all flags false return; } // Use a set to store unique operating classes std::set<uint8_t> uniqueOperatingClasses(operatingClasses.begin(), operatingClasses.end()); // Check each operating class against global band ranges for (uint8_t oc : uniqueOperatingClasses) { if (oc >= 81 && oc <= 84) { pSta->supports_24ghz = true; } else if (oc >= 115 && oc <= 130) { pSta->supports_5ghz = true; } else if (oc >= 131 && oc <= 137) { pSta->supports_6ghz = true; } } return true; } #endif 如果说sta_caps是一个空字符串,那么就默认支持2.45G,不支持6G并返回,如果说sta_caps不是一个空字符串,但里面找不到operating class这个tag,就也默认支持2.45G,不支持6G并返回。请你修改,并且顺便都改成下划线命名法。
最新发布
12-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值