Skip to content

Instantly share code, notes, and snippets.

@lauriku
Last active February 28, 2016 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lauriku/31aa08403fe13e68f795 to your computer and use it in GitHub Desktop.
Save lauriku/31aa08403fe13e68f795 to your computer and use it in GitHub Desktop.
@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