X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fpackage.json;h=1299a009c604ab1be5d5a315ef46ec6389841ecd;hb=72744a1b4a005e8cdd5a90d1c7a1eff02595d9da;hp=1bb5d3571aa6a0c8e1da731cb076c7729c16bada;hpb=e67d73d5f630e0882cfb4ab90dc889ad4812c176;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 1bb5d357..1299a009 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/package.json +++ b/examples/typescript/http-server-pool/fastify-worker_threads/package.json @@ -7,24 +7,27 @@ "type": "module", "volta": { "node": "20.5.1", - "pnpm": "8.6.12" + "pnpm": "8.7.0" }, "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 60 -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 60 -d 30 -p 10 http://localhost:8080/api/factorial/30" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { - "fastify": "^4.21.0", + "fastify": "^4.22.0", "fastify-plugin": "^4.5.1", - "poolifier": "^2.6.34" + "poolifier": "^2.6.37" }, "devDependencies": { - "@types/node": "^20.5.4", + "@types/node": "^20.5.7", + "autocannon": "^7.12.0", "typescript": "^5.2.2" } }