Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
69 lines
1.6 KiB
Bash
Executable File
69 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run Performance Tests for Telegram Marketing Intelligence Agent System
|
|
|
|
echo "🚀 Telegram Marketing Intelligence Agent - Performance Test Suite"
|
|
echo "================================================================"
|
|
echo ""
|
|
|
|
# Change to the performance-tests directory
|
|
cd "$(dirname "$0")"
|
|
|
|
# Check if dependencies are installed
|
|
if [ ! -d "node_modules" ]; then
|
|
echo "📦 Installing dependencies..."
|
|
npm install
|
|
fi
|
|
|
|
echo ""
|
|
echo "Choose which tests to run:"
|
|
echo "1) All tests"
|
|
echo "2) API Benchmark only"
|
|
echo "3) Load Test only"
|
|
echo "4) Stress Test only"
|
|
echo "5) Database Benchmark only"
|
|
echo "6) Message Throughput only"
|
|
echo ""
|
|
|
|
read -p "Enter your choice (1-6): " choice
|
|
|
|
case $choice in
|
|
1)
|
|
echo ""
|
|
echo "Running all performance tests..."
|
|
node src/runner.js
|
|
;;
|
|
2)
|
|
echo ""
|
|
echo "Running API Benchmark..."
|
|
node src/tests/api-benchmark.js
|
|
;;
|
|
3)
|
|
echo ""
|
|
echo "Running Load Test..."
|
|
node src/tests/load-test.js
|
|
;;
|
|
4)
|
|
echo ""
|
|
echo "Running Stress Test..."
|
|
node src/tests/stress-test.js
|
|
;;
|
|
5)
|
|
echo ""
|
|
echo "Running Database Benchmark..."
|
|
node src/tests/database-benchmark.js
|
|
;;
|
|
6)
|
|
echo ""
|
|
echo "Running Message Throughput Test..."
|
|
node src/tests/message-throughput.js
|
|
;;
|
|
*)
|
|
echo "Invalid choice. Exiting."
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
echo ""
|
|
echo "✅ Performance tests completed!"
|
|
echo "📊 Results saved in ./reports/ directory" |