Skip to content

Instantly share code, notes, and snippets.

@lauriku lauriku/locustfile.py Secret
Last active Feb 28, 2016

Embed
What would you like to do?
@task(100)
def write_one_measurement_for_one_device(self):
self.client.post("/write", data=self.datapoint_temperature,
params="db=load_testing",
headers={'Content-Type': 'application/octet-stream'},
name="Write one measurement for one device")
@task(100)
def write_250_measurements_to_all_series(self):
self.client.post("/write", data=datapoints_250,
params="db=load_testing",
headers={'Content-Type': 'application/octet-stream'},
name="Write 250 measurements across 7 series")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.