@@ -705,59 +705,59 @@ jobs:
705705 if : success()
706706 run : python cicd/python/build.py --verbose --test
707707
708- - name : Benchmark
709- if : success()
710- run : |
711- outFile="cicd/log/current-bench-nocache.txt"
712- baselineRefFile="cicd/ref/bench/baseline-go-bench.log"
713- thresholdRefFile="cicd/ref/bench/max-threshold-go-bench.log"
714- go test -run='^$' -bench . -benchtime=100x -count=6 \
715- --tags "sqlite_stackql" --ldflags "-X stackql/internal/stackql/planbuilder.PlanCacheEnabled=false" \
716- ./... | tee ${outFile}
717- # shellcheck disable=SC2181
718- if [ "$?" = "0" ]; then
719- echo "Benchmarking run completed successfully"
720- else
721- echo "Benchmarking run failed"
722- exit 1
723- fi
724- echo ""
725- echo "##### Raw benchstat on current run #####"
726- echo ""
727- benchstat ${outFile} | tee cicd/log/raw-benchstat.txt
728- echo ""
729- echo "##### Comparing to baseline #####"
730- echo ""
731- benchstat -row .name -table .config -ignore goos,goarch,cpu ${baselineRefFile} ${outFile} | tee cicd/log/comparison-benchstat.txt
732- echo ""
733- echo "##### Comparing to max threshold #####"
734- echo ""
735- benchstat -row .name -table .config -ignore goos,goarch,cpu ${thresholdRefFile} ${outFile} | tee cicd/log/threshold-comparison-benchstat.txt
736- # shellcheck disable=SC2002,SC2062
737- comparisons=$( cat cicd/log/threshold-comparison-benchstat.txt \
738- | sed 's/.*\([+-][0-9][0-9]\.[0-9][0-9]*[%]\).*/\1/' \
739- | grep [+-][0-9][0-9]*\.[0-9][0-9]*[%] \
740- )
741- echo ""
742- echo "##### Comparisons #####"
743- echo ""
744- echo "${comparisons}"
745- # shellcheck disable=SC2062
746- nonNegativeComparisons=$( echo "${comparisons}" \
747- | grep -v [-].* \
748- || true
749- )
750- echo "completed comparison logic"
751- if [ -z "${nonNegativeComparisons}" ]; then
752- echo "All max threshold comparisons are negative: this is acceptable"
753- else
754- echo "Some max threshold comparisons are positive or zero: this is unacceptable"
755- echo ""
756- echo "##### Non-negative comparisons #####"
757- echo "${nonNegativeComparisons}"
758- echo ""
759- exit 1
760- fi
708+ # - name: Benchmark
709+ # if: success()
710+ # run: |
711+ # outFile="cicd/log/current-bench-nocache.txt"
712+ # baselineRefFile="cicd/ref/bench/baseline-go-bench.log"
713+ # thresholdRefFile="cicd/ref/bench/max-threshold-go-bench.log"
714+ # go test -run='^$' -bench . -benchtime=100x -count=6 \
715+ # --tags "sqlite_stackql" --ldflags "-X stackql/internal/stackql/planbuilder.PlanCacheEnabled=false" \
716+ # ./... | tee ${outFile}
717+ # # shellcheck disable=SC2181
718+ # if [ "$?" = "0" ]; then
719+ # echo "Benchmarking run completed successfully"
720+ # else
721+ # echo "Benchmarking run failed"
722+ # exit 1
723+ # fi
724+ # echo ""
725+ # echo "##### Raw benchstat on current run #####"
726+ # echo ""
727+ # benchstat ${outFile} | tee cicd/log/raw-benchstat.txt
728+ # echo ""
729+ # echo "##### Comparing to baseline #####"
730+ # echo ""
731+ # benchstat -row .name -table .config -ignore goos,goarch,cpu ${baselineRefFile} ${outFile} | tee cicd/log/comparison-benchstat.txt
732+ # echo ""
733+ # echo "##### Comparing to max threshold #####"
734+ # echo ""
735+ # benchstat -row .name -table .config -ignore goos,goarch,cpu ${thresholdRefFile} ${outFile} | tee cicd/log/threshold-comparison-benchstat.txt
736+ # # shellcheck disable=SC2002,SC2062
737+ # comparisons=$( cat cicd/log/threshold-comparison-benchstat.txt \
738+ # | sed 's/.*\([+-][0-9][0-9]\.[0-9][0-9]*[%]\).*/\1/' \
739+ # | grep [+-][0-9][0-9]*\.[0-9][0-9]*[%] \
740+ # )
741+ # echo ""
742+ # echo "##### Comparisons #####"
743+ # echo ""
744+ # echo "${comparisons}"
745+ # # shellcheck disable=SC2062
746+ # nonNegativeComparisons=$( echo "${comparisons}" \
747+ # | grep -v [-].* \
748+ # || true
749+ # )
750+ # echo "completed comparison logic"
751+ # if [ -z "${nonNegativeComparisons}" ]; then
752+ # echo "All max threshold comparisons are negative: this is acceptable"
753+ # else
754+ # echo "Some max threshold comparisons are positive or zero: this is unacceptable"
755+ # echo ""
756+ # echo "##### Non-negative comparisons #####"
757+ # echo "${nonNegativeComparisons}"
758+ # echo ""
759+ # exit 1
760+ # fi
761761
762762 - name : Create certificates for robot tests
763763 run : |
0 commit comments