forked from phoenix/litellm-mirror
(ci/cd) run load test
This commit is contained in:
parent
a98c5fdbeb
commit
06e319fceb
2 changed files with 4 additions and 6 deletions
8
.github/workflows/locustfile.py
vendored
8
.github/workflows/locustfile.py
vendored
|
@ -4,9 +4,7 @@ import time
|
|||
|
||||
|
||||
class MyUser(HttpUser):
|
||||
wait_time = between(1, 5)
|
||||
|
||||
@task(2)
|
||||
@task(20)
|
||||
def chat_completion(self):
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
|
@ -29,13 +27,13 @@ class MyUser(HttpUser):
|
|||
|
||||
# Print or log the response if needed
|
||||
|
||||
@task(10)
|
||||
@task(40)
|
||||
def health_readiness(self):
|
||||
start_time = time.time()
|
||||
response = self.client.get("health/readiness")
|
||||
response_time = time.time() - start_time
|
||||
|
||||
@task(10)
|
||||
@task(40)
|
||||
def health_liveliness(self):
|
||||
start_time = time.time()
|
||||
response = self.client.get("health/liveliness")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue