-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathperformance-test.sh
More file actions
executable file
·37 lines (28 loc) · 945 Bytes
/
Copy pathperformance-test.sh
File metadata and controls
executable file
·37 lines (28 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Performance Test Script for Predict4Java Optimizations
# This script runs the test suite and measures execution time
echo "========================================="
echo "Predict4Java Performance Test"
echo "========================================="
echo ""
# Clean and compile
echo "Building project..."
mvn clean compile -q
# Run tests with timing
echo ""
echo "Running test suite..."
echo ""
START_TIME=$(date +%s)
mvn test -q 2>&1 | grep -E "(Tests run:|Time elapsed:)"
END_TIME=$(date +%s)
DURATION=$((END_TIME - START_TIME))
echo ""
echo "========================================="
echo "Test Execution Time: ${DURATION} seconds"
echo "========================================="
echo ""
# Show memory usage summary
echo "Memory and GC Statistics:"
mvn test -q -Dmaven.test.failure.ignore=true 2>&1 | grep -i "memory\|gc" | head -5
echo ""
echo "Build complete. Check target/surefire-reports for detailed results."