-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbench-plan-cache-parts.sh
99 lines (78 loc) · 2.82 KB
/
bench-plan-cache-parts.sh
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
cd ~/tidb
git diff > tmp.diff
git checkout .
git checkout master
git pull
#time go test -tags intest github.com/pingcap/tidb/pkg/session -bench . -cpu 8 -timeout 45m -run '^[^T]' -v -skip '^Benchmark[SJ]|Pruning$|Scan|Index|Basic|Table|^Benchmark[PB]|BenchmarkHashPartitionPruningPointSelect' -count 5 --outfile bench.master.res > bench.master.out 2>&1
benchtest='go test -tags intest github.com/pingcap/tidb/pkg/session -bench . -cpu 8 -timeout 45m -run "^[^T]" -v'
nr=1
git checkout master
patch -p1 < ~/bench-part-cache.final.diff
time $benchtest > bench.master.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.after-pr.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e^
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.before-pr.${nr}.out 2>&1
git checkout .
git checkout v7.5.1
patch -p1 < ~/bench-part-cache.final.7.5.diff
time $benchtest > bench.7.5.1.${nr}.out 2>&1
git checkout .
# Run 2
nr=2
git checkout v7.5.1
patch -p1 < ~/bench-part-cache.final.7.5.diff
time $benchtest > bench.7.5.1.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e^
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.before-pr.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.after-pr.${nr}.out 2>&1
git checkout .
git checkout master
patch -p1 < ~/bench-part-cache.final.diff
time $benchtest > bench.master.${nr}.out 2>&1
git checkout .
# Run 3
nr=3
git checkout master
patch -p1 < ~/bench-part-cache.final.diff
time $benchtest > bench.master.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.after-pr.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e^
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.before-pr.${nr}.out 2>&1
git checkout .
git checkout v7.5.1
patch -p1 < ~/bench-part-cache.final.7.5.diff
time $benchtest > bench.7.5.1.${nr}.out 2>&1
git checkout .
# Run 4
nr=4
git checkout v7.5.1
patch -p1 < ~/bench-part-cache.final.7.5.diff
time $benchtest > bench.7.5.1.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e^
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.before-pr.${nr}.out 2>&1
git checkout .
git checkout ccbab5eeb7e004802610daf9c6bd91918e568c8e
patch -p1 < ~/bench-part-cache.final.only-test.diff
time $benchtest > bench.after-pr.${nr}.out 2>&1
git checkout .
git checkout master
patch -p1 < ~/bench-part-cache.final.diff
time $benchtest > bench.master.${nr}.out 2>&1
git checkout .