mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-03 07:09:21 +00:00
15 lines
313 B
Python
15 lines
313 B
Python
![]() |
import json
|
||
|
|
||
|
from locust import HttpUser, between, task
|
||
|
|
||
|
|
||
|
class SearchUser(HttpUser):
|
||
|
wait_time = between(1, 5)
|
||
|
|
||
|
@task
|
||
|
def search(self):
|
||
|
self.client.post(
|
||
|
"/entities?action=search",
|
||
|
json.dumps({"input": "test", "entity": "dataset", "start": 0, "count": 10}),
|
||
|
)
|