aboutsummaryrefslogtreecommitdiff
path: root/test/s3/iam/run_performance_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/s3/iam/run_performance_tests.sh')
-rwxr-xr-xtest/s3/iam/run_performance_tests.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/s3/iam/run_performance_tests.sh b/test/s3/iam/run_performance_tests.sh
new file mode 100755
index 000000000..293632b2c
--- /dev/null
+++ b/test/s3/iam/run_performance_tests.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Performance Test Runner for SeaweedFS S3 IAM
+
+set -e
+
+# Colors
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+NC='\033[0m'
+
+echo -e "${YELLOW}๐Ÿ Running S3 IAM Performance Tests${NC}"
+
+# Enable performance tests
+export ENABLE_PERFORMANCE_TESTS=true
+export TEST_TIMEOUT=60m
+
+# Run benchmarks
+echo -e "${YELLOW}๐Ÿ“Š Running benchmarks...${NC}"
+go test -bench=. -benchmem -timeout=$TEST_TIMEOUT ./...
+
+# Run performance tests
+echo -e "${YELLOW}๐Ÿงช Running performance test suite...${NC}"
+go test -v -timeout=$TEST_TIMEOUT -run "TestS3IAMPerformanceTests" ./...
+
+echo -e "${GREEN}โœ… Performance tests completed${NC}"