-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 1.04 KB
/
package.json
File metadata and controls
21 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "queue-server",
"version": "1.0.0",
"description": "Express server with endpoint locking mechanism",
"main": "server.js",
"scripts": {
"express:start": "node server.js",
"fastapi:install": "cd api && pip install -r requirements.txt",
"fastapi:start": "cd api && uvicorn main:app --reload --log-level debug",
"fastapi:load": "oha -n 1000 -c 50 --rand-regex-url \"http://localhost:8000/request/[1-9][0-9]\"",
"fastapi:load:light": "oha -n 100 -c 10 --rand-regex-url \"http://localhost:8000/request/[1-9][0-9]\"",
"fastapi:load:heavy": "oha -n 1000 -c 100 --rand-regex-url \"http://localhost:8000/request/[1-5]\"",
"fastapi:load:single-id": "oha -n 100 -c 50 --rand-regex-url \"http://localhost:8000/request/1\"",
"fastapi:load:many-ids": "oha -n 1000 -c 50 --rand-regex-url \"http://localhost:8000/request/[1-9][0-9]\"",
"fastapi:load:extreme": "oha -n 10000 -c 200 --rand-regex-url \"http://localhost:8000/request/[1-9][0-9]\""
},
"dependencies": {
"express": "^5.1.0",
"morgan": "^1.10.1"
}
}