Skip to content

Commit 7eb6d73

Browse files
- Skip benchmarking.
1 parent bc38021 commit 7eb6d73

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -308,59 +308,59 @@ jobs:
308308
if: success()
309309
run: python cicd/python/build.py --verbose --test
310310

311-
- name: Benchmark
312-
if: success()
313-
run: |
314-
outFile="cicd/log/current-bench-nocache.txt"
315-
baselineRefFile="cicd/ref/bench/baseline-go-bench.log"
316-
thresholdRefFile="cicd/ref/bench/max-threshold-go-bench.log"
317-
go test -run='^$' -bench . -benchtime=100x -count=6 \
318-
--tags "sqlite_stackql" --ldflags "-X stackql/internal/stackql/planbuilder.PlanCacheEnabled=false" \
319-
./... | tee ${outFile}
320-
# shellcheck disable=SC2181
321-
if [ "$?" = "0" ]; then
322-
echo "Benchmarking run completed successfully"
323-
else
324-
echo "Benchmarking run failed"
325-
exit 1
326-
fi
327-
echo ""
328-
echo "##### Raw benchstat on current run #####"
329-
echo ""
330-
benchstat ${outFile} | tee cicd/log/raw-benchstat.txt
331-
echo ""
332-
echo "##### Comparing to baseline #####"
333-
echo ""
334-
benchstat -row .name -table .config -ignore goos,goarch,cpu ${baselineRefFile} ${outFile} | tee cicd/log/comparison-benchstat.txt
335-
echo ""
336-
echo "##### Comparing to max threshold #####"
337-
echo ""
338-
benchstat -row .name -table .config -ignore goos,goarch,cpu ${thresholdRefFile} ${outFile} | tee cicd/log/threshold-comparison-benchstat.txt
339-
# shellcheck disable=SC2002,SC2062
340-
comparisons=$( cat cicd/log/threshold-comparison-benchstat.txt \
341-
| sed 's/.*\([+-][0-9][0-9]\.[0-9][0-9]*[%]\).*/\1/' \
342-
| grep [+-][0-9][0-9]*\.[0-9][0-9]*[%] \
343-
)
344-
echo ""
345-
echo "##### Comparisons #####"
346-
echo ""
347-
echo "${comparisons}"
348-
# shellcheck disable=SC2062
349-
nonNegativeComparisons=$( echo "${comparisons}" \
350-
| grep -v [-].* \
351-
|| true
352-
)
353-
echo "completed comparison logic"
354-
if [ -z "${nonNegativeComparisons}" ]; then
355-
echo "All max threshold comparisons are negative: this is acceptable"
356-
else
357-
echo "Some max threshold comparisons are positive or zero: this is unacceptable"
358-
echo ""
359-
echo "##### Non-negative comparisons #####"
360-
echo "${nonNegativeComparisons}"
361-
echo ""
362-
exit 1
363-
fi
311+
# - name: Benchmark
312+
# if: success()
313+
# run: |
314+
# outFile="cicd/log/current-bench-nocache.txt"
315+
# baselineRefFile="cicd/ref/bench/baseline-go-bench.log"
316+
# thresholdRefFile="cicd/ref/bench/max-threshold-go-bench.log"
317+
# go test -run='^$' -bench . -benchtime=100x -count=6 \
318+
# --tags "sqlite_stackql" --ldflags "-X stackql/internal/stackql/planbuilder.PlanCacheEnabled=false" \
319+
# ./... | tee ${outFile}
320+
# # shellcheck disable=SC2181
321+
# if [ "$?" = "0" ]; then
322+
# echo "Benchmarking run completed successfully"
323+
# else
324+
# echo "Benchmarking run failed"
325+
# exit 1
326+
# fi
327+
# echo ""
328+
# echo "##### Raw benchstat on current run #####"
329+
# echo ""
330+
# benchstat ${outFile} | tee cicd/log/raw-benchstat.txt
331+
# echo ""
332+
# echo "##### Comparing to baseline #####"
333+
# echo ""
334+
# benchstat -row .name -table .config -ignore goos,goarch,cpu ${baselineRefFile} ${outFile} | tee cicd/log/comparison-benchstat.txt
335+
# echo ""
336+
# echo "##### Comparing to max threshold #####"
337+
# echo ""
338+
# benchstat -row .name -table .config -ignore goos,goarch,cpu ${thresholdRefFile} ${outFile} | tee cicd/log/threshold-comparison-benchstat.txt
339+
# # shellcheck disable=SC2002,SC2062
340+
# comparisons=$( cat cicd/log/threshold-comparison-benchstat.txt \
341+
# | sed 's/.*\([+-][0-9][0-9]\.[0-9][0-9]*[%]\).*/\1/' \
342+
# | grep [+-][0-9][0-9]*\.[0-9][0-9]*[%] \
343+
# )
344+
# echo ""
345+
# echo "##### Comparisons #####"
346+
# echo ""
347+
# echo "${comparisons}"
348+
# # shellcheck disable=SC2062
349+
# nonNegativeComparisons=$( echo "${comparisons}" \
350+
# | grep -v [-].* \
351+
# || true
352+
# )
353+
# echo "completed comparison logic"
354+
# if [ -z "${nonNegativeComparisons}" ]; then
355+
# echo "All max threshold comparisons are negative: this is acceptable"
356+
# else
357+
# echo "Some max threshold comparisons are positive or zero: this is unacceptable"
358+
# echo ""
359+
# echo "##### Non-negative comparisons #####"
360+
# echo "${nonNegativeComparisons}"
361+
# echo ""
362+
# exit 1
363+
# fi
364364

365365
- name: Upload Artifact
366366
uses: actions/[email protected]

0 commit comments

Comments
 (0)