X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fpackage.json;h=ffe12f267537b47aa4607d65e3e84a67af6325c3;hb=64f97d12e2027203715ee0129d036e1d2b42e2a2;hp=f9704d5365a746600e81d85f8482d95a67302de8;hpb=9b121f9c11621140deabb4e061d23d019fe01bb3;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-cluster/package.json b/examples/typescript/http-server-pool/fastify-cluster/package.json index f9704d53..ffe12f26 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/package.json +++ b/examples/typescript/http-server-pool/fastify-cluster/package.json @@ -7,24 +7,27 @@ "type": "module", "volta": { "node": "20.5.1", - "pnpm": "8.7.0" + "pnpm": "8.7.1" }, "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.22.0", - "poolifier": "^2.6.37" + "fastify": "^4.22.2", + "poolifier": "^2.6.40" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", - "@types/node": "^20.5.7", + "@types/node": "^20.5.8", + "autocannon": "^7.12.0", "rollup": "^3.28.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2",