locust的HTTP客户端默认是使用requests模块实现的,但是在大规模并发http请求时,requests模块并不是最优的实现,为了解决并发资源消耗问题,locust建议使用faster HTTP client的实现,它使用了geventhttpclient代替了requests. 它能提升5-6倍的并发量。
使用方法就是用FastHttpUser代替HttpUser
#使用HttpUser
from locust import User,HttpUser,task,constant
class MyUserBe(HttpUser):
wait_time = constant(1)
@task
def my_task1(self):
with self.client.get("https://www.baidu.com/", catch_response=True) as res:
if res.status_code == 200:
print("成功")
else:
print("失败")
class MyUser(User):
wait_time = constant(1)
tasks = [MyUserBe]
#使用FastHttpUser
from locust.contrib.fasthttp import FastHttpUser
from locust import User,HttpUser,task,constant
class MyUserBe(FastHttpUser):
wait_time = constant(1)
@task
def my_task1(self):
with self.client.get("https://www.baidu.com/", catch_response=True) as res:
if res.status_code == 200:
print("成功")
else:
print("失败")
class MyUser(User):
wait_time = constant(1)
tasks = [MyUserBe]
#输出
H:\2021\PythonProject\Learning>locust -f H:\2021\PythonProject\Learning\locust_demo21.py
[2021-01-24 22:27:12,728] SKY-20210118WDX/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2021-01-24 22:27:12,740] SKY-20210118WDX/INFO/locust.main: Starting Locust 1.4.1
[2021-01-24 22:27:31,346] SKY-20210118WDX/INFO/locust.runners: Spawning 5 users at the rate 2 users/s (0 users already running)...
成功
成功
成功
成功
成功
[2021-01-24 22:27:33,351] SKY-20210118WDX/INFO/locust.runners: All users spawned: MyUserBe: 3, MyUser: 2 (5 total running)
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
成功
在相同的并发条件下使用FastHttpUser能有效减少对负载机的资源消耗从而达到更大的http请求。
在编写接口脚本时会经常遇到测试的接口需要依赖上一个接口的返回参数作为入参,此时就需要做参数动态关联,在locust中关联的实现方式多种多样,下面是示例代码仅供参考。
#示例1
from locust import TaskSet, task, HttpUser
class UserBehavior(TaskSet):
def on_start(self):
global token
token = self.client.get('/login').text
@task
def login(self):
payload = { 'username': "xxxxxxxxxxxxxxxx", 'password': 'xxxxxxxx'}
headers = {"token":token}
self.client.post('/user', data=payload,headers=headers)
class WebUser(HttpUser):
tasks = [UserBehavior]
min_wait = 1000
max_wait = 3000
#示例2
from locust import TaskSet, task, HttpUser
class UserBehavior(TaskSet):
@task
def login(self):
re= self.client.get('/login').text #比如获取token
payload = { 'username': "xxxxxxxxxxxxxxxx", 'password': 'xxxxxxxx'}
headers = {"token":re}
self.client.post('/user', data=payload,headers=headers)
class WebUser(HttpUser):
tasks = [UserBehavior]
min_wait = 1000
max_wait = 3000
压力测试中不可避免需要进行参数化,参数一般情况下有如下几种情况
场景一、所有用户随机取数,数据可以重复使用
示例处理方法:将数据存储在文件中,测试时可读取出来再随机取数
场景二、所有用户顺序循环取数,数据可以重复使用
示例处理方法:将数据存储到队列中,取出一个数据后再将其压入队列中
场景三、所有数据只能用一次,用完即止
示例处理方法:将数据存储到队列中,直接读取直到队列为空
下面只展示使用队列参数化
#场景三、所有数据只能用一次,用完即止
from locust.contrib.fasthttp import FastHttpUser
from locust import User, HttpUser, task, constant
import queue
class MyUserBe(FastHttpUser):
wait_time = constant(1)
test_data = [111,222,333,444,555,666,777,888,999] #示例数据源,实际情况一般数据存储在文件或数据库中
Q= queue.Queue() #队列中的数据取完后测试就停止了
def on_start(self):
for i in self.test_data:
self.Q.put(i)
@task
def my_task1(self):
with self.client.get("https://www.baidu.com/"+str(self.Q.get()), catch_response=True) as res:
if res.status_code == 200:
print("成功")
else:
print("失败")
class MyUser(User):
wait_time = constant(1)
tasks = [MyUserBe]
#执行结果
[2021-01-26 19:41:54,645] 910lanmingyong/INFO/locust.runners: 1 Users have been stopped
Name # reqs # fails | Avg Min Max Median | req/s failures/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET https://www.baidu.com/111 1 1(100.00%) | 59 59 59 59 | 0.12 0.12
GET https://www.baidu.com/222 1 1(100.00%) | 10 10 10 10 | 0.12 0.12
GET https://www.baidu.com/333 1 1(100.00%) | 10 10 10 10 | 0.12 0.12
GET https://www.baidu.com/444 1 1(100.00%) | 9 9 9 9 | 0.12 0.12
GET https://www.baidu.com/555 1 1(100.00%) | 10 10 10 10 | 0.12 0.12
GET https://www.baidu.com/666 1 1(100.00%) | 10 10 10 10 | 0.12 0.12
GET https://www.baidu.com/777 1 1(100.00%) | 12 12 12 12 | 0.12 0.12
GET https://www.baidu.com/888 1 1(100.00%) | 10 10 10 10 | 0.12 0.12
GET https://www.baidu.com/999 1 1(100.00%) | 11 11 11 11 | 0.12 0.12
--------------------------------------------------------------------------------------------------------------------------------------------
Aggregated 9 9(100.00%) | 15 9 59 10 | 1.10 1.10
Response time percentiles (approximated)
Type Name 50% 66% 75% 80% 90% 95% 98% 99% 99.9% 99.99% 100% # reqs
--------|------------------------------------------------------------|---------|------|------|------|------|------|------|------|------|------|------|------|
GET https://www.baidu.com/111 59 59 59 59 59 59 59 59 59 59 59 1
GET https://www.baidu.com/222 10 10 10 10 10 10 10 10 10 10 10 1
GET https://www.baidu.com/333 10 10 10 10 10 10 10 10 10 10 10 1
GET https://www.baidu.com/444 9 9 9 9 9 9 9 9 9 9 9 1
GET https://www.baidu.com/555 10 10 10 10 10 10 10 10 10 10 10 1
GET https://www.baidu.com/666 10 10 10 10 10 10 10 10 10 10 10 1
GET https://www.baidu.com/777 12 12 12 12 12 12 12 12 12 12 12 1
GET https://www.baidu.com/888 10 10 10 10 10 10 10 10 10 10 10 1
GET https://www.baidu.com/999 11 11 11 11 11 11 11 11 11 11 11 1
--------|------------------------------------------------------------|---------|------|------|------|------|------|------|------|------|------|------|------|
None Aggregated 10 10 11 12 59 59 59 59 59 59 59 9
Error report
# occurrences Error
--------------------------------------------------------------------------------------------------------------------------------------------
1 GET https://www.baidu.com/111: "BadStatusCode('https://www.baidu.com/111', code=404)"
1 GET https://www.baidu.com/222: "BadStatusCode('https://www.baidu.com/222', code=404)"
1 GET https://www.baidu.com/333: "BadStatusCode('https://www.baidu.com/333', code=404)"
1 GET https://www.baidu.com/444: "BadStatusCode('https://www.baidu.com/444', code=404)"
1 GET https://www.baidu.com/555: "BadStatusCode('https://www.baidu.com/555', code=404)"
1 GET https://www.baidu.com/666: "BadStatusCode('https://www.baidu.com/666', code=404)"
1 GET https://www.baidu.com/777: "BadStatusCode('https://www.baidu.com/777', code=404)"
1 GET https://www.baidu.com/888: "BadStatusCode('https://www.baidu.com/888', code=404)"
1 GET https://www.baidu.com/999: "BadStatusCode('https://www.baidu.com/999', code=404)"
--------------------------------------------------------------------------------------------------------------------------------------------
在locust测试是否通过默认是通过http的状态码来判断,显然这是这是不能满足实际需求的,这时就需要自定义判断返回值是否符合预期
from locust import task, constant, HttpUser, TaskSet
class MyUser1(TaskSet):
@task
def task_1(self):
##断言方法,要在请求加入参数开启catch_response=True
with self.client.get('/',catch_response = True) as response:
#拿到响应后可以通过json形式获取响应值进行断言
if response.status_code == 200:
response.success()
else:
response.failure("失败")
class MyUserAll(HttpUser):
wait_time = constant(1)
tasks = [MyUser1]
在实际的压测场景中,经常需要让压力在某一个时间点集中并发测试(如秒杀场景),此时就需要有集合点的概念,让所有用户全部完成初始化后集中发起压力,在locust中可以使用gevent信号量Semaphore 实现。
关于Semaphore
Semaphore
对象内部管理一个计数器,该计数器由每个acquire()
调用递减,并由每个release()
调用递增。计数器永远不会低于零,当acquire()
发现计数器为零时,线程阻塞,等待其他线程调用release()
。
import time
import datetime
from threading import Semaphore,Thread
def test1(index, sem):
sem.acquire() #计数器-1,当前5个线程到达时计数器就为0,此时会阻塞后面5个线程
print('{0} is waiting semaphore({1}).'.format( index , datetime.datetime.now().strftime('%Y-%m-%d-%H:%M:%S.%f')))
time.sleep(2)
sem.release() #计数器+1,当前面5个调用了release时计数器+1,计数器大于0,此时后面五个线程就可以执行了
print('{0} is release semaphore({1}).'.format( index , datetime.datetime.now().strftime('%Y-%m-%d-%H:%M:%S.%f')))
if __name__ == '__main__':
sem = Semaphore(5) #计数器初始值为1
for i in range(10):
Thread(target=test1, args=(i, sem)).start() #启动十个线程调用test1
#输出
0 is waiting semaphore(2021-01-28-09:02:17.002715).
1 is waiting semaphore(2021-01-28-09:02:17.002715).
2 is waiting semaphore(2021-01-28-09:02:17.002715).
3 is waiting semaphore(2021-01-28-09:02:17.003745).
4 is waiting semaphore(2021-01-28-09:02:17.004712).
1 is release semaphore(2021-01-28-09:02:19.003464).
0 is release semaphore(2021-01-28-09:02:19.003464).
5 is waiting semaphore(2021-01-28-09:02:19.003464).
6 is waiting semaphore(2021-01-28-09:02:19.003464).
2 is release semaphore(2021-01-28-09:02:19.004379).
7 is waiting semaphore(2021-01-28-09:02:19.004379).
3 is release semaphore(2021-01-28-09:02:19.005376).
4 is release semaphore(2021-01-28-09:02:19.005376).
8 is waiting semaphore(2021-01-28-09:02:19.005376).
9 is waiting semaphore(2021-01-28-09:02:19.005376).
5 is release semaphore(2021-01-28-09:02:21.004049).
6 is release semaphore(2021-01-28-09:02:21.004049).
7 is release semaphore(2021-01-28-09:02:21.005046).
9 is release semaphore(2021-01-28-09:02:21.006047).
8 is release semaphore(2021-01-28-09:02:21.006047).
集合点示例1
#方式一,SequentialTaskSet集合点
'''''''''
示例场景1:
一个购物系统,测试开始10个用户启动完毕后先对浏览商品行为压测持续5次,然后10用户在对支付订单行为进行压测一次,再然后是对创建订单压测2次,最后对退出浏览该商品行为压测2次,循环执行上述步骤
'''
import datetime
from locust import TaskSet, task, events, SequentialTaskSet, User
from gevent._semaphore import Semaphore
#创建集合点,当locust实例产生完成时触发(即10用户启动完毕)
all_locusts_spawned = Semaphore()
all_locusts_spawned.acquire()
def on_hatch_complete(**kwargs):
all_locusts_spawned.release()
events.spawning_complete.add_listener(on_hatch_complete)
def login(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户登陆!')
def logout(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户退出')
class UserBehavior(SequentialTaskSet):
def on_start(self):
login(self)
def on_stop(self):
logout(self)
@task(5)
def BrowseGoods(self):
all_locusts_spawned.wait() # 集合点等待并发
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'浏览商品')
@task(1)
def PayOrder(self):
all_locusts_spawned.wait()
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'支付订单')
@task(2)
def CreateOrder(self):
all_locusts_spawned.wait()
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'创建订单')
@task(2)
def leave(self):
all_locusts_spawned.wait()
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'退出浏览该商品')
class WebsiteUser(User):
tasks = [UserBehavior]
min_wait = 2000
max_wait = 3000
#输出
E:\PyProject\Learning>locust -f E:\PyProject\Learning\locusti\locustfile_dome15.py
[2021-01-25 16:52:42,348] 910lanmingyong/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2021-01-25 16:52:42,354] 910lanmingyong/INFO/locust.main: Starting Locust 1.3.1
[2021-01-25 16:52:51,332] 910lanmingyong/INFO/locust.runners: Spawning 10 users at the rate 3 users/s (0 users already running)...
2021-01-25 16:52:51.332024用户登录!
2021-01-25 16:52:51.666132用户登录!
2021-01-25 16:52:52.000242用户登录!
2021-01-25 16:52:52.333359用户登录!
2021-01-25 16:52:52.667465用户登录!
2021-01-25 16:52:53.001581用户登录!
2021-01-25 16:52:53.335686用户登录!
2021-01-25 16:52:53.669796用户登录!
2021-01-25 16:52:54.002913用户登录!
[2021-01-25 16:52:54,336] 910lanmingyong/INFO/locust.runners: All users spawned: WebsiteUser: 10 (0 already running)
2021-01-25 16:52:54.336106用户登录!
2021-01-25 16:52:54.336106浏览商品
2021-01-25 16:52:54.336106浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.337020浏览商品
2021-01-25 16:52:54.338017浏览商品
2021-01-25 16:52:54.338017浏览商品
2021-01-25 16:52:56.352732浏览商品
2021-01-25 16:52:56.365704浏览商品
2021-01-25 16:52:56.412492浏览商品
2021-01-25 16:52:56.488378浏览商品
2021-01-25 16:52:56.494351浏览商品
2021-01-25 16:52:56.541230浏览商品
2021-01-25 16:52:56.633942浏览商品
2021-01-25 16:52:56.938096浏览商品
2021-01-25 16:52:56.971008浏览商品
2021-01-25 16:52:57.030849浏览商品
2021-01-25 16:52:58.610643浏览商品
2021-01-25 16:52:58.744363浏览商品
2021-01-25 16:52:58.841099浏览商品
2021-01-25 16:52:58.855985浏览商品
2021-01-25 16:52:58.985643浏览商品
2021-01-25 16:52:59.091358浏览商品
2021-01-25 16:52:59.254926浏览商品
2021-01-25 16:52:59.300800浏览商品
2021-01-25 16:52:59.767625浏览商品
2021-01-25 16:52:59.941098浏览商品
2021-01-25 16:53:00.843695浏览商品
2021-01-25 16:53:01.121950浏览商品
2021-01-25 16:53:01.289588浏览商品
2021-01-25 16:53:01.317430浏览商品
2021-01-25 16:53:01.341369浏览商品
2021-01-25 16:53:01.376273浏览商品
2021-01-25 16:53:01.420156浏览商品
2021-01-25 16:53:01.594695浏览商品
2021-01-25 16:53:02.005601浏览商品
2021-01-25 16:53:02.559124浏览商品
2021-01-25 16:53:03.047825浏览商品
2021-01-25 16:53:03.482663浏览商品
2021-01-25 16:53:03.638248浏览商品
2021-01-25 16:53:03.708066浏览商品
2021-01-25 16:53:03.781866浏览商品
2021-01-25 16:53:03.901628浏览商品
2021-01-25 16:53:04.046166浏览商品
2021-01-25 16:53:04.281540浏览商品
2021-01-25 16:53:04.292506浏览商品
2021-01-25 16:53:05.463473浏览商品
2021-01-25 16:53:05.894246支付订单
2021-01-25 16:53:05.967051支付订单
2021-01-25 16:53:06.028888支付订单
2021-01-25 16:53:06.171506支付订单
2021-01-25 16:53:06.176580支付订单
2021-01-25 16:53:06.315120支付订单
2021-01-25 16:53:06.443777支付订单
2021-01-25 16:53:06.514594支付订单
2021-01-25 16:53:06.777981支付订单
2021-01-25 16:53:08.304909支付订单
2021-01-25 16:53:08.594052创建订单
2021-01-25 16:53:08.712739创建订单
2021-01-25 16:53:08.780577创建订单
2021-01-25 16:53:08.783574创建订单
2021-01-25 16:53:08.822527创建订单
2021-01-25 16:53:08.873307创建订单
2021-01-25 16:53:08.907220创建订单
2021-01-25 16:53:09.068814创建订单
2021-01-25 16:53:09.322112创建订单
2021-01-25 16:53:10.751311创建订单
2021-01-25 16:53:10.787211创建订单
2021-01-25 16:53:10.905898创建订单
2021-01-25 16:53:11.054574创建订单
2021-01-25 16:53:11.155234创建订单
2021-01-25 16:53:11.442466创建订单
2021-01-25 16:53:11.640936创建订单
2021-01-25 16:53:11.747722创建订单
2021-01-25 16:53:11.828441创建订单
2021-01-25 16:53:12.159561创建订单
2021-01-25 16:53:13.046198退出浏览该商品
2021-01-25 16:53:13.295534退出浏览该商品
2021-01-25 16:53:13.540958退出浏览该商品
2021-01-25 16:53:13.673555退出浏览该商品
2021-01-25 16:53:13.910895创建订单
2021-01-25 16:53:14.009716退出浏览该商品
2021-01-25 16:53:14.283902退出浏览该商品
2021-01-25 16:53:14.330777退出浏览该商品
2021-01-25 16:53:14.396602退出浏览该商品
2021-01-25 16:53:14.608036退出浏览该商品
2021-01-25 16:53:15.314155退出浏览该商品
2021-01-25 16:53:15.799861退出浏览该商品
2021-01-25 16:53:15.906577退出浏览该商品
2021-01-25 16:53:16.109038退出浏览该商品
2021-01-25 16:53:16.240771退出浏览该商品
2021-01-25 16:53:16.284574退出浏览该商品
2021-01-25 16:53:16.606716退出浏览该商品
2021-01-25 16:53:16.736371退出浏览该商品
2021-01-25 16:53:17.241097退出浏览该商品
2021-01-25 16:53:17.244089退出浏览该商品
2021-01-25 16:53:17.386635浏览商品
2021-01-25 16:53:17.801614浏览商品
2021-01-25 16:53:18.440832浏览商品
2021-01-25 16:53:18.608382浏览商品
2021-01-25 16:53:18.645312浏览商品
2021-01-25 16:53:18.720084退出浏览该商品
2021-01-25 16:53:18.889636浏览商品
2021-01-25 16:53:19.339434浏览商品
2021-01-25 16:53:19.556883浏览商品
2021-01-25 16:53:19.742362浏览商品
[2021-01-25 16:53:20,027] 910lanmingyong/INFO/locust.runners: Stopping 10 users
2021-01-25 16:53:20.029597用户退出登录!
2021-01-25 16:53:20.029597用户退出登录!
2021-01-25 16:53:20.029597用户退出登录!
2021-01-25 16:53:20.029597用户退出登录!
2021-01-25 16:53:20.030594用户退出登录!
2021-01-25 16:53:20.030594用户退出登录!
2021-01-25 16:53:20.030594用户退出登录!
2021-01-25 16:53:20.030594用户退出登录!
2021-01-25 16:53:20.030594用户退出登录!
2021-01-25 16:53:20.031591用户退出登录!
集合点示例2
#方式二,TaskSet集合点
'''''''''
场景1:
一个购物系统,压力测试需要并发10个人,其中有80%人正在浏览商品;20%个人正在支付订单
'''
import datetime
from locust import TaskSet, task, events, SequentialTaskSet, User
from gevent._semaphore import Semaphore
'''''''''
创建集合点,当locust实例产生完成时触发
'''
all_locusts_spawned = Semaphore()
all_locusts_spawned.acquire()
def on_hatch_complete(**kwargs):
all_locusts_spawned.release()
events.spawning_complete.add_listener(on_hatch_complete)
def login(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户正在登录!')
def logout(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户正在退出登录!')
class UserBehavior(TaskSet):
# 初始化
def on_start(self):
login(self)
# 退出测试
def on_stop(self):
logout(self)
@task(4)
def BrowseGoods(self):
all_locusts_spawned.wait() # 集合点等待并发
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户浏览商品')
@task(1)
def PayOrder(self):
all_locusts_spawned.wait() # 集合点等待并发
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')+'用户支付订单')
class WebsiteUser(User):
tasks = [UserBehavior]
min_wait = 2000
max_wait = 3000
#设置10个并发用户,当10个用户启动完成是,启动集合点并发
E:\PyProject\Learning>locust -f E:\PyProject\Learning\locusti\locustfile_dome16.py
[2021-01-25 19:16:35,091] 910lanmingyong/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2021-01-25 19:16:35,097] 910lanmingyong/INFO/locust.main: Starting Locust 1.3.1
[2021-01-25 19:16:43,464] 910lanmingyong/INFO/locust.runners: Spawning 10 users at the rate 3 users/s (0 users already running)...
2021-01-25 19:16:43.465551用户登录!
2021-01-25 19:16:43.798661用户登录!
2021-01-25 19:16:44.132774用户登录!
2021-01-25 19:16:44.466966用户登录!
2021-01-25 19:16:44.800993用户登录!
2021-01-25 19:16:45.135176用户登录!
2021-01-25 19:16:45.468208用户登录!
2021-01-25 19:16:45.801323用户登录!
2021-01-25 19:16:46.134436用户登录!
[2021-01-25 19:16:46,469] 910lanmingyong/INFO/locust.runners: All users spawned: WebsiteUser: 10 (0 already running)
2021-01-25 19:16:46.470539用户登录!
#第一批
2021-01-25 19:16:46.471537浏览商品
2021-01-25 19:16:46.472532浏览商品
2021-01-25 19:16:46.472532浏览商品
2021-01-25 19:16:46.472532浏览商品
2021-01-25 19:16:46.472532浏览商品
2021-01-25 19:16:46.473526浏览商品
2021-01-25 19:16:46.473526浏览商品
2021-01-25 19:16:46.473526浏览商品
2021-01-25 19:16:46.473526支付订单
2021-01-25 19:16:46.473526浏览商品
#第二批
2021-01-25 19:16:48.510174浏览商品
2021-01-25 19:16:48.514084浏览商品
2021-01-25 19:16:48.593875浏览商品
2021-01-25 19:16:48.660696浏览商品
2021-01-25 19:16:48.866149浏览商品
2021-01-25 19:16:48.885175支付订单
2021-01-25 19:16:49.006775支付订单
2021-01-25 19:16:49.115483浏览商品
2021-01-25 19:16:49.168430浏览商品
2021-01-25 19:16:49.252119浏览商品
#第三批
2021-01-25 19:16:50.589570浏览商品
2021-01-25 19:16:50.985495浏览商品
2021-01-25 19:16:51.109166浏览商品
2021-01-25 19:16:51.159032浏览商品
2021-01-25 19:16:51.251786浏览商品
2021-01-25 19:16:51.290764浏览商品
2021-01-25 19:16:51.359574浏览商品
2021-01-25 19:16:51.662686浏览商品
2021-01-25 19:16:51.666675浏览商品
2021-01-25 19:16:51.684631浏览商品
...
2021-01-25 19:16:53.297329浏览商品
2021-01-25 19:16:53.377116支付订单
2021-01-25 19:16:53.436043支付订单
2021-01-25 19:16:53.443025浏览商品
2021-01-25 19:16:53.448011浏览商品
2021-01-25 19:16:53.718203浏览商品
2021-01-25 19:16:53.723212浏览商品
2021-01-25 19:16:53.796996浏览商品
2021-01-25 19:16:54.158033浏览商品
2021-01-25 19:16:54.352510浏览商品
2021-01-25 19:16:55.809662浏览商品
2021-01-25 19:16:55.892477浏览商品
2021-01-25 19:16:55.911358浏览商品
2021-01-25 19:16:56.011172浏览商品
2021-01-25 19:16:56.017071支付订单
2021-01-25 19:16:56.222528浏览商品
2021-01-25 19:16:56.240479浏览商品
2021-01-25 19:16:56.442938支付订单
[2021-01-25 19:16:56,553] 910lanmingyong/INFO/locust.runners: Stopping 10 users
2021-01-25 19:16:56.554638用户退出登录!
2021-01-25 19:16:56.554638用户退出登录!
2021-01-25 19:16:56.554638用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!
2021-01-25 19:16:56.555634用户退出登录!