File tree 3 files changed +11
-5
lines changed
docker/test/performance-comparison
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ def run_test(
162
162
f"./tests/performance/scripts/perf.py --host localhost localhost \
163
163
--port { cls .LEFT_SERVER_PORT } { cls .RIGHT_SERVER_PORT } \
164
164
--runs { runs } --max-queries { max_queries } \
165
- --profile-seconds 0 \
165
+ --profile-seconds 10 \
166
166
{ test_file } " ,
167
167
verbose = True ,
168
168
)
@@ -621,7 +621,7 @@ def too_many_slow(msg):
621
621
# attach all logs with errors
622
622
Shell .check (f"rm -f { perf_wd } /logs.tar.zst" )
623
623
Shell .check (
624
- f'cd { perf_wd } && find . -type f \( -name "*.log" -o -name "*.tsv" -o -name "*.txt" -o -name "*.rep" \) ! -path "*/db/*" ! -path "*/db0/*" -print0 | tar --null -T - -cf - | zstd -o ./logs.tar.zst' ,
624
+ f'cd { perf_wd } && find . -type f \( -name "*.log" -o -name "*.tsv" -o -name "*.txt" -o -name "*.rep" -o -name "*.svg" \) ! -path "*/db/*" ! -path "*/db0/*" -print0 | tar --null -T - -cf - | zstd -o ./logs.tar.zst' ,
625
625
verbose = True ,
626
626
)
627
627
if Path (f"{ perf_wd } /logs.tar.zst" ).is_file ():
Original file line number Diff line number Diff line change 1104
1104
| cut -f 5- \
1105
1105
| sed ' s/\t/ /g' \
1106
1106
| tee " report/tmp/$query_file .stacks.$version .tsv" \
1107
- | ~ /fg/flamegraph.pl --hash > " $query_file .$version .svg" &
1107
+ | /fg/flamegraph.pl --hash > " $query_file .$version .svg" &
1108
1108
done
1109
1109
done
1110
1110
wait
@@ -1113,10 +1113,10 @@ unset IFS
1113
1113
# Create differential flamegraphs.
1114
1114
while IFS= read -r query_file
1115
1115
do
1116
- ~ /fg/difffolded.pl " report/tmp/$query_file .stacks.left.tsv" \
1116
+ /fg/difffolded.pl " report/tmp/$query_file .stacks.left.tsv" \
1117
1117
" report/tmp/$query_file .stacks.right.tsv" \
1118
1118
| tee " report/tmp/$query_file .stacks.diff.tsv" \
1119
- | ~ /fg/flamegraph.pl > " $query_file .diff.svg" &
1119
+ | /fg/flamegraph.pl > " $query_file .diff.svg" &
1120
1120
done < report/query-files.txt
1121
1121
wait
1122
1122
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ RUN apt-get update \
39
39
COPY requirements.txt /
40
40
RUN pip3 --no-cache-dir install -r requirements.txt
41
41
42
+ RUN mkdir /fg && cd /fg \
43
+ && wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/cd9ee4c4449775a2f867acf31c84b7fe4b132ad5/flamegraph.pl" \
44
+ && wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/cd9ee4c4449775a2f867acf31c84b7fe4b132ad5/difffolded.pl" \
45
+ && chmod +x /fg/difffolded.pl \
46
+ && chmod +x /fg/flamegraph.pl
47
+
42
48
COPY run.sh /
43
49
44
50
COPY --from=clickhouse/cctools:13cfebfd8f1bbc65ab49 /opt/gdb /opt/gdb
You can’t perform that action at this time.
0 commit comments