![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
测试
我要精通C++
这个作者很懒,什么都没留下…
展开
-
wrk测试参数和测试结果说明
wrk的参数原创 2023-06-11 16:26:21 · 1027 阅读 · 0 评论 -
压力测试工具
1. ab一个学习连接ab -n1000 -c10 http://localhost:8080/pro , 这是一个基本命令-n1000表示总请求数为1000-c10表示并发用户数为10参数说明:Concurrency Level:并发用户数;Time taken for tests:请求处理花费的总时间;Complete requests:总请求数;Failed requests:失败的请求数;Total transferred: 所有请求响应数据长度总和;HTML trans原创 2022-04-03 11:50:12 · 128 阅读 · 0 评论 -
代码审查-cppcheck
代码审查-cppcheck1.乌班图上的安装sudo apt install cppcheck2.使用2.1 检查某一个文件cppcheck file.c2.2 检查文件夹中的所有文件cppcheck path原创 2022-03-15 11:21:36 · 847 阅读 · 0 评论 -
googletest学习
1.链接GITHUB的一个加速镜像:https://gitcode.net/mirrors/google/googletest原创 2022-01-01 14:47:59 · 428 阅读 · 0 评论 -
Google Benchmark & Google Test
一个学习链接原创 2021-12-27 09:33:44 · 1139 阅读 · 0 评论 -
单元测试3-去除空格
string TrimRightStr(string &strSrc){ int strLength = 0; int Flag = 0; if (strSrc.empty()) { return ""; } strLength = strSrc.size(); for (int i = strLength - 1; i >= 0; --i) { if (!isspace(strSrc[i])).原创 2021-12-16 16:13:03 · 264 阅读 · 0 评论 -
单元测试2-分割函数
int split(const std::string &sourceStr, const char *pSplit, std::vector<std::string> &lstStringDest){ int nSplitLen = strlen(pSplit); if (sourceStr=="") { return 0; } std::size_t startindex = 0; while (1) .原创 2021-12-16 16:10:20 · 363 阅读 · 0 评论 -
单元测试1-读出文件里面的内容
#include <iostream>#include <vector>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <fstream> #include <sys/types.h>#include <regex.h>#include <string>using namespace std;boo.原创 2021-12-16 16:02:05 · 284 阅读 · 0 评论