摘要:
# *_*coding:utf-8 *_* # @Author : zyb import queue # q = queue.SimpleQueue() #不限制大小,仅仅支持添加数据和取数据,先进先出。 q = queue.Queue() # 可以设置大小用maxsize参数。先进先出。如管道。添 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb import queue q = queue.Queue() for i in range(100): q.put(i) from locust import FastHttpUser, task, between, Seq 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb from locust import HttpUser, TaskSet, task, constant,FastHttpUser from locust import LoadTestShape class UserTas 阅读全文
摘要:
from locust.runners import (MasterRunner, WorkerRunner, STATE_STOPPING, STATE_STOPPED, STATE_CLEANUP, LocalRunner) from locust import HttpUser, TaskSe 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb # HttpUser :保持会话。FastHttpUser:高性能 from locust import TaskSet, task, HttpUser,FastHttpUser, between, constant_thr 阅读全文
摘要:
# *_*coding:utf-8 *_* # @Author : zyb from locust import TaskSet, task, FastHttpUser, between, events # 定义任务集类 @events.request.add_listener def on_req 阅读全文