Document

02 2022 档案

摘要:线程数:${__P(concurrent_number,100)} 并发数量,默认是100并发 Ramp-Up时间:${__P(ramp_time,1)} 所有线程启动时间,默认是1秒 循环次数:${__P(cycles,1)} 循环次数,默认是1次,当值为 -1时,则表示永远 持续时间:${__P 阅读全文
posted @ 2022-02-25 15:49 lsepi 阅读(241) 评论(0) 推荐(0)
摘要:执行linux,清理内存 echo 3 > /proc/sys/vm/drop_caches 阅读全文
posted @ 2022-02-25 15:44 lsepi 阅读(95) 评论(0) 推荐(0)
摘要:import os import sys def copy_file(srcfile, dstpath): if not os.path.isfile(srcfile): print("{} 文件不存在".format(srcfile), flush=True) sys.exit(1) else: 阅读全文
posted @ 2022-02-25 15:40 lsepi 阅读(74) 评论(0) 推荐(0)
摘要:def replace_contents(old_content, new_content, file_path): file_data = "" with open(file_path, "r", encoding="UTF-8") as f: for line in f: if old_cont 阅读全文
posted @ 2022-02-25 15:38 lsepi 阅读(84) 评论(0) 推荐(0)
摘要:import threading mutex_lock = threading.RLock() class Threads(threading.Thread): def __init__(self,name): threading.Thread.__init__(self) def run(self 阅读全文
posted @ 2022-02-25 15:36 lsepi 阅读(255) 评论(0) 推荐(0)
摘要:在【HTTP信息头管理器】中添加如下信息: x-Forwarded-For ${__Random(10,200,)}.${__Random(2,255,)}.${__Random(2,255,)}.${__Random(1,255,)} 阅读全文
posted @ 2022-02-23 14:28 lsepi 阅读(88) 评论(0) 推荐(1)