run_performance_tests.sh 624 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # Performance Test Runner for SeaweedFS S3 IAM
  3. set -e
  4. # Colors
  5. GREEN='\033[0;32m'
  6. YELLOW='\033[1;33m'
  7. NC='\033[0m'
  8. echo -e "${YELLOW}🏁 Running S3 IAM Performance Tests${NC}"
  9. # Enable performance tests
  10. export ENABLE_PERFORMANCE_TESTS=true
  11. export TEST_TIMEOUT=60m
  12. # Run benchmarks
  13. echo -e "${YELLOW}📊 Running benchmarks...${NC}"
  14. go test -bench=. -benchmem -timeout=$TEST_TIMEOUT ./...
  15. # Run performance tests
  16. echo -e "${YELLOW}🧪 Running performance test suite...${NC}"
  17. go test -v -timeout=$TEST_TIMEOUT -run "TestS3IAMPerformanceTests" ./...
  18. echo -e "${GREEN}✅ Performance tests completed${NC}"