Flow memo to move LOCUST for the time being

What is LOCUST?

Load test tool Easy to define in Python

environment

Python3.7 locust 1.3.1

Installation

$ pip install locust

Create locustfile.py

from locust import HttpUser, TaskSet, task, between, constant

class UserBehavior(TaskSet):
    
    @task(1)
    def search(self):
        self.client.get("/hoge", verify=False)

class WebsiteUser(HttpUser):

    tasks = {UserBehavior:1}
    wait_time = constant(0)

Command execution

$ locast

Web console (GUI) launch

Access http: // localhost: 8089 / with a browser

Settings are from top to bottom

Number of total users to simulate Spawn rate (number of users increasing per second) Host (URL to be load tested)

Run with Start swarming

reference

https://locust.io/ https://qiita.com/naoki114/items/7ae5a045bb08c4950b04

Recommended Posts

Flow memo to move LOCUST for the time being
I want to move selenium for the time being [for mac]
Molecular dynamics simulation to try for the time being
Next to Excel, for the time being, jupyter notebook
[Introduction to Reinforcement Learning] Reinforcement learning to try moving for the time being
I want to create a Dockerfile for the time being.
Java programmer tried to touch Go language (for the time being)
Understanding the python class Struggle (1) Let's move it for the time being
Python Master RTA for the time being
Challenge image classification by TensorFlow2 + Keras 1-Move for the time being-
For the time being, I want to convert files with ffmpeg !!
Challenge image classification with TensorFlow2 + Keras CNN 1 ~ Move for the time being ~
For the time being, import them into jupyter
Make a histogram for the time being (matplotlib)
Use logger with Python for the time being
Run yolov4 "for the time being" on windows
I played with Floydhub for the time being
Try using LINE Notify for the time being
virtualenv For the time being, this is all!
Try posting to Qiita for the first time
Try adding an external module to pepper. For the time being, in requests.
Run with CentOS7 + Apache2.4 + Python3.6 for the time being
I will install Arch Linux for the time being.
I will try to summarize the links that seem to be useful for the time being
Kaggle for the first time (kaggle ①)
Kaguru for the first time
I tried running PIFuHD on Windows for the time being
For the time being, try using the docomo chat dialogue API
I want to use the Ubuntu desktop environment on Android for the time being (Termux version)
I want to use Ubuntu's desktop environment on Android for the time being (UserLAnd version)
A memo to move Errbot locally
[For self-learning] Go2 for the first time
Tensorflow memo [updated from time to time]
I made a function to check if the webhook is received in Lambda for the time being
See python for the first time
Let's touch Google's Vision API from Python for the time being
Start Django for the first time
I tried to move the ball
Try using FireBase Cloud Firestore in Python for the time being
A memo when creating an environment that can be debugged with Lambda @ Edge for the time being
[Hi Py (Part 1)] I want to make something for the time being, so first set a goal.
I want to use Ubuntu's desktop environment on Android for the time being (Termux version-Japanese input in desktop environment)
For the time being using FastAPI, I want to display how to use API like that on swagger
[Python] [Machine learning] Beginners without any knowledge try machine learning for the time being
For the first time in Numpy, I will update it from time to time
Technique to stop drawing the screen and reduce the waiting time for baking
I tried tensorflow for the first time
Memo to ask for KPI with python
Set the time zone to Japan Standard Time
How to set the server time to Japanese time
MongoDB for the first time in Python
Let's try Linux for the first time
I thought I could make a nice gitignore editor, so I tried to make something like MVP for the time being
I bought Sipeed Lichee Zero so I set it up for the time being
GTUG Girls + PyLadiesTokyo Meetup I went to machine learning for the first time
Memo # 4 for Python beginners to read "Detailed Python Grammar"
I tried using scrapy for the first time
The fastest way for beginners to master Python
How to specify the launch browser for JupyterLab 3.0.0
For beginners to build an Anaconda environment. (Memo)
Memo # 3 for Python beginners to read "Detailed Python Grammar"