Skip to content
Snippets Groups Projects
Commit f4b586b3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added a simply locust load test.

parent aeffb12e
Branches
Tags
2 merge requests!188V0.9.0,!185Bugfixes
from locust import HttpUser, task, between
from ase.data import chemical_symbols
import random
class QuickstartUser(HttpUser):
wait_time = between(1, 2)
@task
def empty_search(self):
self.client.get("/prod/rae/beta/api/repo/")
@task
def elements_search(self):
self.client.get("/prod/rae/beta/api/repo/?atoms=%s" % random.choice(chemical_symbols[1:]))
def on_start(self):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment