X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fpackage.json;h=e46be655a3ff3504294fd093d4d39a585f85728f;hb=e3238b8352855ba7090656c9c78343ab39820884;hp=fbdf6b33d8d8ef5c0686fc961b9084e7ebcec590;hpb=74d695c915c677ccf3984c42fcc00d4892335ef1;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 fbdf6b33..e46be655 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/package.json +++ b/examples/typescript/http-server-pool/fastify-hybrid/package.json @@ -6,26 +6,29 @@ "main": "dist/main.js", "type": "module", "volta": { - "node": "20.5.1", - "pnpm": "8.7.0" + "node": "20.6.0", + "pnpm": "8.7.4" }, "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.21.0", + "fastify": "^4.22.2", "fastify-plugin": "^4.5.1", - "poolifier": "^2.6.37" + "poolifier": "^2.6.42" }, "devDependencies": { - "@rollup/plugin-typescript": "^11.1.2", - "@types/node": "^20.5.6", + "@rollup/plugin-typescript": "^11.1.3", + "@types/node": "^20.5.9", + "autocannon": "^7.12.0", "rollup": "^3.28.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2",