-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest-regression.sh
More file actions
executable file
·75 lines (68 loc) · 2.22 KB
/
test-regression.sh
File metadata and controls
executable file
·75 lines (68 loc) · 2.22 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# DBSP.NET Performance Regression Testing
# Runs benchmarks and detects performance regressions using BDNA
# Usage: ./test-regression.sh [--quick] [--filter pattern] [--comprehensive]
set -e
# Configuration
FILTER="*"
QUICK=false
COMPREHENSIVE=false
TOLERANCE=10.0
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--quick)
QUICK=true
shift
;;
--filter)
FILTER="$2"
shift 2
;;
--comprehensive)
COMPREHENSIVE=true
shift
;;
--tolerance)
TOLERANCE="$2"
shift 2
;;
-h|--help)
echo "Usage: $0 [OPTIONS]"
echo ""
echo "Options:"
echo " --quick Run quick benchmarks for development"
echo " --filter PATTERN Filter benchmarks (e.g., '*ZSet*')"
echo " --comprehensive Run comprehensive Phase 5.2 benchmarks"
echo " --tolerance PERCENT Regression tolerance (default: 10.0%)"
echo " -h, --help Show this help message"
exit 0
;;
*)
echo "Unknown argument: $1"
echo "Use --help for usage information"
exit 1
;;
esac
done
echo "🔬 DBSP.NET Performance Regression Testing"
echo "=========================================="
# Run appropriate benchmark suite
if [[ "$COMPREHENSIVE" == "true" ]]; then
echo "📊 Running Comprehensive Phase 5.2 Benchmarks"
echo " Git SHA: $(git rev-parse --short HEAD)"
echo " Branch: $(git branch --show-current)"
echo ""
# Run specific Phase 5.2 benchmarks
./scripts/run-benchmark-analysis.sh --filter "*ZSet_BatchConstruction*" --quick
./scripts/run-benchmark-analysis.sh --filter "*ThreadLocal*" --quick
./scripts/run-benchmark-analysis.sh --filter "*Parallel*" --quick
else
# Run standard regression test
if ! ./scripts/run-benchmark-analysis.sh ${QUICK:+--quick} ${FILTER:+--filter "$FILTER"} ${TOLERANCE:+--tolerance "$TOLERANCE"}; then
echo "❌ Performance regression detected - see output above"
exit 1
fi
fi
echo "✅ No performance regression detected"
exit 0