Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- load_test_sync.py +2 -2
load_test_sync.py
CHANGED
|
@@ -15,7 +15,7 @@ payloads = [
|
|
| 15 |
"severity": random.choice(["high", "low"]),
|
| 16 |
"summary": f"Test orchestrator ticket #{i}"
|
| 17 |
}
|
| 18 |
-
for i in range(
|
| 19 |
]
|
| 20 |
|
| 21 |
async def send_request(session, idx, payload):
|
|
@@ -30,7 +30,7 @@ async def send_request(session, idx, payload):
|
|
| 30 |
return None, 0
|
| 31 |
|
| 32 |
async def main():
|
| 33 |
-
print("🚀 Sending
|
| 34 |
start_time = time.time()
|
| 35 |
|
| 36 |
async with aiohttp.ClientSession() as session:
|
|
|
|
| 15 |
"severity": random.choice(["high", "low"]),
|
| 16 |
"summary": f"Test orchestrator ticket #{i}"
|
| 17 |
}
|
| 18 |
+
for i in range(16)
|
| 19 |
]
|
| 20 |
|
| 21 |
async def send_request(session, idx, payload):
|
|
|
|
| 30 |
return None, 0
|
| 31 |
|
| 32 |
async def main():
|
| 33 |
+
print("🚀 Sending 16 concurrent requests to ORCHESTRATOR...\n")
|
| 34 |
start_time = time.time()
|
| 35 |
|
| 36 |
async with aiohttp.ClientSession() as session:
|