"main": "dist/main.js",
"type": "module",
"volta": {
- "node": "20.5.1",
- "pnpm": "8.7.0"
+ "node": "20.7.0",
+ "pnpm": "8.8.0"
},
"scripts": {
"build": "rollup --config",
"start": "node dist/main.cjs",
"start:esm": "node dist/main.js",
- "test": "echo \"Error: no test specified\" && exit 1"
+ "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",
- "poolifier": "^2.6.35"
+ "fastify": "^4.23.2",
+ "poolifier": "^2.7.4"
},
"devDependencies": {
- "@rollup/plugin-typescript": "^11.1.2",
- "@types/node": "^20.5.6",
- "rollup": "^3.28.1",
+ "@rollup/plugin-typescript": "^11.1.4",
+ "@types/node": "^20.7.1",
+ "autocannon": "^7.12.0",
+ "rollup": "^3.29.4",
"rollup-plugin-delete": "^2.0.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2"