X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fpackage.json;h=b80bc7a27bb673b57e7a88114270526af6d9a5c7;hb=a7385b49901fc73522c657776611159cd3c35bad;hp=882fbdf84055223a77d41ac40bb8197a67faa28c;hpb=b19fad69c85c7bf1f7c9654b7090a0ad4753c565;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/package.json b/examples/typescript/http-server-pool/fastify-hybrid/package.json index 882fbdf8..b80bc7a2 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/package.json +++ b/examples/typescript/http-server-pool/fastify-hybrid/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": "", @@ -21,11 +23,12 @@ "dependencies": { "fastify": "^4.22.0", "fastify-plugin": "^4.5.1", - "poolifier": "^2.6.37" + "poolifier": "^2.6.39" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", - "@types/node": "^20.5.6", + "@types/node": "^20.5.7", + "autocannon": "^7.12.0", "rollup": "^3.28.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2",