Files
bun.sh/bench/stress/hot-reload-files/run-stress-test.sh
2025-05-06 03:23:16 -07:00

14 lines
296 B
Bash
Executable File

#!/bin/bash
# Clean up modules directory
rm -rf modules
# Generate the module files
echo "Generating 1000 module files..."
bun generate.ts
# Run the stress test
echo "Running stress test for 1000 reloads..."
bun stress-test.ts
# All done - the stress test manages the child process internally