摘要:
线程数:${__P(concurrent_number,100)} 并发数量,默认是100并发 Ramp-Up时间:${__P(ramp_time,1)} 所有线程启动时间,默认是1秒 循环次数:${__P(cycles,1)} 循环次数,默认是1次,当值为 -1时,则表示永远 持续时间:${__P 阅读全文
摘要:
执行linux,清理内存 echo 3 > /proc/sys/vm/drop_caches 阅读全文
摘要:
import os import sys def copy_file(srcfile, dstpath): if not os.path.isfile(srcfile): print("{} 文件不存在".format(srcfile), flush=True) sys.exit(1) else: 阅读全文
摘要:
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 阅读全文
摘要:
import threading mutex_lock = threading.RLock() class Threads(threading.Thread): def __init__(self,name): threading.Thread.__init__(self) def run(self 阅读全文