fix: fix race condition in worker choice strategies
[poolifier.git] / examples / typescript / http-server-pool / fastify-hybrid / package.json
index 9f2712eb4bd0c59a0dbe2428b590a82e1b7fca1a..c42916a01082a1ad24ddca8f86561e36fae12a04 100644 (file)
@@ -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": "",
   "dependencies": {
     "fastify": "^4.22.0",
     "fastify-plugin": "^4.5.1",
-    "poolifier": "^2.6.37"
+    "poolifier": "^2.6.38"
   },
   "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",