X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fpackage.json;h=65e36fe3c971eb4d5508f856dde034fafde088ff;hb=8a11c8fd0b8be823629d0475ee16362b0bb31d25;hp=46dfe60dbaafd281731e8b6d5a1380aa441dd6ab;hpb=43cbd7b8146eaae160cf0b6a5f0b520055a9f2cd;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/package.json b/examples/typescript/http-server-pool/fastify-worker_threads/package.json index 46dfe60d..65e36fe3 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/package.json +++ b/examples/typescript/http-server-pool/fastify-worker_threads/package.json @@ -6,25 +6,28 @@ "main": "dist/main.js", "type": "module", "volta": { - "node": "20.5.1", - "pnpm": "8.7.0" + "node": "20.6.1", + "pnpm": "8.7.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" + "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.22.2", "fastify-plugin": "^4.5.1", - "poolifier": "^2.6.35" + "poolifier": "^2.6.44" }, "devDependencies": { - "@types/node": "^20.5.7", + "@types/node": "^20.5.9", + "autocannon": "^7.12.0", "typescript": "^5.2.2" } }