Commit f4b586b3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added a simply locust load test.

parent aeffb12e
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment