refactor: use autocannon on HTTP server examples
[poolifier.git] / examples / typescript / http-server-pool / express-hybrid / package.json
index 5b71c5adde41ce7e71813f8b2fa36c29a7538058..3cebd4c8c8003da109850f5f1ecd928de8ebfab0 100644 (file)
@@ -7,28 +7,31 @@
   "type": "module",
   "volta": {
     "node": "20.5.1",
-    "pnpm": "8.6.12"
+    "pnpm": "8.7.0"
   },
   "scripts": {
     "build": "rollup --config",
     "start": "node dist/main.cjs",
     "start:esm": "node dist/main.mjs",
-    "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": "",
   "license": "ISC",
   "dependencies": {
     "express": "^4.18.2",
-    "poolifier": "^2.6.28"
+    "poolifier": "^2.6.37"
   },
   "devDependencies": {
-    "@rollup/plugin-typescript": "^11.1.2",
+    "@rollup/plugin-typescript": "^11.1.3",
     "@types/express": "^4.17.17",
-    "@types/node": "^20.5.4",
-    "rollup": "^3.28.0",
+    "@types/node": "^20.5.7",
+    "autocannon": "^7.12.0",
+    "rollup": "^3.28.1",
     "rollup-plugin-delete": "^2.0.0",
     "tslib": "^2.6.2",
-    "typescript": "^5.1.6"
+    "typescript": "^5.2.2"
   }
 }