上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 71 下一页
摘要: 1.吞吐控制器以线程组的请求sampler为控制对象, 2.事务控制器: 3.同步定时器syn timer:对某线程组下任意的sampler任意位置作用为,有序控制单个sampler的并发先sampler001,再sampler002 4,tps(事务请求图),trt(响应时间图表):位于监听器li 阅读全文
posted @ 2019-07-20 23:30 不带R的墨菲特 阅读(921) 评论(0) 推荐(0)
摘要: 1. Locust简介 Locust是使用Python语言编写实现的开源性能测试工具,简洁、轻量、高效,并发机制基于gevent协程,可以实现单机模拟生成较高的并发压力。 官网:https://locust.io/ 主要特点如下: 1) 使用普通的Python脚本用户测试场景 2) 分布式和可扩展, 阅读全文
posted @ 2019-07-20 18:11 不带R的墨菲特 阅读(498) 评论(0) 推荐(0)
摘要: https://debugtalk.com/post/head-first-locust-user-guide/ 阅读全文
posted @ 2019-07-20 17:36 不带R的墨菲特 阅读(395) 评论(1) 推荐(0)
摘要: import getoptimport sysimport uuidimport hashlibimport csvdef getIds(totals,encrypt): seed=set() for i in range(totals): uid=uuid.uuid1() if encrypt: encrypt_id=hashlib... 阅读全文
posted @ 2019-07-17 23:42 不带R的墨菲特 阅读(416) 评论(1) 推荐(0)
摘要: 有些情况下我们需要下载N个第三方包,或者下载的包依赖其它包,一个个下载非常浪费时间。这时我们可以通过如下两种方式的命令批量下载。 方式1 pip download -d /tmp/packagesdir 方式2 pip download -d /tmp/packagesdir -r requirements.txt 其中requirements.txt是我们需要下载的包清单,例如 jin... 阅读全文
posted @ 2019-07-13 19:16 不带R的墨菲特 阅读(7488) 评论(1) 推荐(0)
摘要: from functools import reduce list1=list2=list3=["a","b","c","d"]排列组合a,b,c.d 组合3成字母字符串结果不重复一共多少种?方法一: def add(x,y): return [str(i)+str(j) for i in x for j in y] result=reduce(add,[list1,list2,list3... 阅读全文
posted @ 2019-06-29 00:36 不带R的墨菲特 阅读(418) 评论(1) 推荐(0)
摘要: package com.webank.ai.fate.serving; import java.text.SimpleDateFormat; import java.util.*; public class MyDemo extends Thread { @Override public void 阅读全文
posted @ 2019-06-26 00:22 不带R的墨菲特 阅读(254) 评论(1) 推荐(0)
摘要: threadpool 模式线程池调用 阅读全文
posted @ 2019-06-25 18:53 不带R的墨菲特 阅读(262) 评论(0) 推荐(0)
摘要: 1.格式化: param=111 {“k”: "{}".format(param)} 2.字符串替换: string=“aaabbb" # from aaa to oooo string.replace("aaa","oooo") 4.字符串去空格: string=“ aa bb ccccc ” s 阅读全文
posted @ 2019-06-24 18:09 不带R的墨菲特 阅读(570) 评论(0) 推荐(0)
摘要: 1. read_csv read_csv方法定义: pandas.read_csv(filepath_or_buffer, sep=', ', delimiter=None, header='infer', names=None, index_col=None, usecols=None, sque 阅读全文
posted @ 2019-06-01 17:07 不带R的墨菲特 阅读(572) 评论(0) 推荐(0)
上一页 1 ··· 51 52 53 54 55 56 57 58 59 ··· 71 下一页