Skip to main content

Fixed interval taskset utility package for Locust

Project description



A Locust TaskSet that sends requests at a constant rate (with a fixed time interval). Based on Locust issue #646.

The instance 'interval' attribute defines the time interval between successive requests per user in seconds (default 1.0). This value must be greater than the average HTTP request roundtrip time. For example, if your request takes 1.9 seconds to get to the server and back, and the execution of your code and the Locust framework code additionally requires 0.1 second between requests, you should set 'interval' to a value over 2.0 seconds. If you need a higher request rate, increase the number of simulated users.

Example usage

class MyTaskSet(FixedIntervalTaskSet):

  def setup(self):
      self.interval = 2.5 

  def task1(self):

class MyLocust(HttpLocust):
    task_set = MyTaskSet

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
locust_fixed_interval-0.1-py3-none-any.whl (3.5 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page