This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from locust import TaskSet, task | |
import locust_grafana | |
locust_grafana.setup_graphite_communication() | |
class LocustTaskSet(TaskSet): | |
@task(10) | |
def homepage(self): | |
self.client.get("/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original version from: https://gist.github.com/vividhsv/5139c37d267330236dbe | |
import sys | |
import os | |
import time | |
import locust | |
import gevent | |
from gevent.socket import socket | |
from gevent.queue import Queue |