Skip to content

Instantly share code, notes, and snippets.

View florin-talarian's full-sized avatar

Florin Barbu florin-talarian

View GitHub Profile
@florin-talarian
florin-talarian / locust.py
Created January 26, 2022 10:16
Lock Service API Perf Testing With Locust
from uuid import uuid4
from random import randint, choice
from locust import HttpUser, task, between
UUIDS = [str(uuid4()) for _ in range(1000)]
class LockServiceLoadTesting(HttpUser):
def on_start(self):
self.client.headers = {"X-LockService-User": "49ac1e09-7267-4c2c-a4bd-6fac615ccce0"}
# Reserved Strings
#
# Strings which may be used elsewhere in code
undefined
undef
null
NULL
(null)
nil