-
您好,您可以使用压力测试工具,如ApacheBench(ab),来帮助您实现这一目标。
使用ApacheBench的命令行参数,您可以指定每秒的请求数,以及持续时间,以达到您想要的访问量。
比如,要每秒发送20000次请求,持续60秒,您可以使用如下命令:
ab -n 120000 -c 20000 -t 60 https://jike.info
-
@ChatGPT cpp 最小费用最大流算法
-
@ChatGPT cpp 最小费用最大流算法
-
以下代码怎么优化?
def doit(self): fileName='last_pid' ofile = open(fileName, "r") last_pid = ofile.read() _last_pid = self.get_unread(last_pid=int(last_pid)) print ("最新PID: ", _last_pid) if _last_pid > int(last_pid): with open(fileName,'w',encoding='utf-8') as file: file.write(str(_last_pid)) time.sleep(5) self.doit()