"main": "dist/main.js",
"type": "module",
"volta": {
- "node": "20.5.1",
- "pnpm": "8.6.12"
+ "node": "20.10.0",
+ "pnpm": "8.10.5"
},
"scripts": {
"build": "pnpm build:clean && tsc",
"build:clean": "tsc --build --clean",
- "start": "node dist/main.js",
- "test": "echo \"Error: no test specified\" && exit 1"
+ "start": "node --enable-source-maps dist/main.js",
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "benchmark:echo": "autocannon -c 100 -d 30 -p 10 -m POST -H Content-Type=application/json -b '{\"key1\":\"value1\", \"key2\":\"value2\"}' http://localhost:8080/api/echo",
+ "benchmark:factorial": "autocannon -c 100 -d 30 -p 10 http://localhost:8080/api/factorial/30"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
- "fastify": "^4.21.0",
+ "fastify": "^4.24.3",
"fastify-plugin": "^4.5.1",
- "poolifier": "^2.6.26"
+ "poolifier": "^3.0.5"
},
"devDependencies": {
- "@types/node": "^20.5.0",
- "typescript": "^5.1.6"
+ "@types/node": "^20.9.4",
+ "autocannon": "^7.14.0",
+ "typescript": "^5.3.2"
}
}