Add npm script to build a standalone binary using Bun's bytecode compilation. The binary is ~30% faster than Node.js for CLI operations. Benchmark results (10 runs, simple query): - Bun Bytecode Binary: 1.82s avg - Bun runtime: 2.09s avg - Node.js: 2.59s avg Startup time only (--help): - Bun Bytecode: 0.049s (3.8x faster than Node) - Bun runtime: 0.121s - Node.js: 0.185s Usage: npm run build:binary Output: dist/pi-binary Requires Bun 1.3+ for bytecode compilation support.
1.5 KiB
1.5 KiB