-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
24 lines (23 loc) · 1.35 KB
/
package.json
File metadata and controls
24 lines (23 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"license": "MIT",
"scripts": {
"loadtest:node:json": "autocannon -d 10 -c 100 http://localhost:3000/api/v1/health",
"loadtest:go:json": "autocannon -d 10 -c 100 http://localhost:5000/api/v1/health",
"loadtest:json": "yarn loadtest:node:json && yarn loadtest:go:json",
"loadtest:go:db": "autocannon -d 10 -c 100 http://localhost:5000/api/v1/music",
"loadtest:node:db": "autocannon -d 10 -c 100 http://localhost:3000/api/v1/music",
"loadtest:db": "yarn loadtest:node:db && yarn loadtest:go:db",
"loadtest:node:jwt": "autocannon -m POST -H \"Content-Type: application/json\" -b '{\"username\":\"admin\",\"password\":\"password\"}' http://localhost:3000/api/v1/login",
"loadtest:go:jwt": "autocannon -m POST -H \"Content-Type: application/json\" -b '{\"username\":\"admin\",\"password\":\"password\"}' http://localhost:5000/api/v1/login",
"loadtest:jwt": "yarn loadtest:node:jwt && yarn loadtest:go:jwt",
"loadtest": "yarn loadtest:json && yarn loadtest:db && yarn loadtest:jwt",
"test": "playwright test"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"devDependencies": {
"@playwright/test": "^1.52.0",
"@types/node": "^22.15.30",
"autocannon": "^8.0.0"
},
"dependencies": {}
}