- "build": "rollup --config",
- "start": "node dist/main.cjs",
- "start:esm": "node dist/main.mjs",
- "test": "echo \"Error: no test specified\" && exit 1"
+ "build": "rollup --config --configPlugin typescript",
+ "start": "node --enable-source-maps dist/main.cjs",
+ "start:esm": "node --enable-source-maps dist/main.js",
+ "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"