X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-cluster%2Fpackage.json;h=3ee88af0235f115dcd889587c780fe34d363c534;hb=72744a1b4a005e8cdd5a90d1c7a1eff02595d9da;hp=f9704d5365a746600e81d85f8482d95a67302de8;hpb=5ffe63009b464913075facd8be08ae86e8d054f2;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..3ee88af0 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/package.json +++ b/examples/typescript/http-server-pool/fastify-cluster/package.json @@ -13,7 +13,9 @@ "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 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": "", @@ -25,6 +27,7 @@ "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", "@types/node": "^20.5.7", + "autocannon": "^7.12.0", "rollup": "^3.28.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2",