Commit 11a1ab52 authored by litaolemo's avatar litaolemo

update

parent 086ddca8
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
import json import json
import time import time
from locust import HttpUser, task from locust import HttpUser, task
from locust.contrib.fasthttp import FastHttpUser
ip = '172.16.52.25@elastic:gengmei!@#' ip = '172.16.52.25@elastic:gengmei!@#'
ip,auth = ip.split("@",1) ip,auth = ip.split("@",1)
...@@ -397,8 +397,8 @@ query_Str_list = list(query_list.keys()) ...@@ -397,8 +397,8 @@ query_Str_list = list(query_list.keys())
import random import random
print(random.choice(query_Str_list)) print(random.choice(query_Str_list))
class QuickstartUser(HttpUser): class QuickstartUser(FastHttpUser):
@task @task(500)
def hello_world(self): def hello_world(self):
query = random.choice(query_Str_list) query = random.choice(query_Str_list)
data = { data = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment