Commit 11a1ab52 authored by litaolemo's avatar litaolemo

update

parent 086ddca8
......@@ -6,7 +6,7 @@
import json
import time
from locust import HttpUser, task
from locust.contrib.fasthttp import FastHttpUser
ip = '172.16.52.25@elastic:gengmei!@#'
ip,auth = ip.split("@",1)
......@@ -397,8 +397,8 @@ query_Str_list = list(query_list.keys())
import random
print(random.choice(query_Str_list))
class QuickstartUser(HttpUser):
@task
class QuickstartUser(FastHttpUser):
@task(500)
def hello_world(self):
query = random.choice(query_Str_list)
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