X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fpackage.json;h=3361987485afdf3cc5825f3ba357767ebf973ead;hb=b6ccfa7830073fd2758dff8776a09c8d68c80227;hp=e3b14ed1c3fbe031e871126b645b0bd870a98b17;hpb=eee6ab375c471f1b57332fea64573b6fc7ed84e6;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 e3b14ed1..33619874 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/package.json +++ b/examples/typescript/http-server-pool/fastify-worker_threads/package.json @@ -13,7 +13,9 @@ "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": "", @@ -21,10 +23,11 @@ "dependencies": { "fastify": "^4.22.0", "fastify-plugin": "^4.5.1", - "poolifier": "^2.6.37" + "poolifier": "^2.6.39" }, "devDependencies": { "@types/node": "^20.5.7", + "autocannon": "^7.12.0", "typescript": "^5.2.2" } }