File tree 1 file changed +39
-0
lines changed
test/aml_comparisons/scripts
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Benchmark comparison
4
+ #
5
+ # This script should be run from the top-level _build directory
6
+ #
7
+
8
+ if [[ -d /coek_performance_results ]]; then
9
+ echo $CI_COMMIT_SHA
10
+ echo $CI_COMMIT_TITLE
11
+ fi
12
+
13
+ \r m -Rf results
14
+ ../test/aml_comparisons/scripts/run ${1} :lp_writer 3
15
+ ../test/aml_comparisons/scripts/run $1 :solve0 3
16
+ ../test/aml_comparisons/scripts/collect
17
+
18
+ echo " "
19
+ echo " SOLVE0 RESULTS"
20
+ echo " "
21
+
22
+ ../test/aml_comparisons/scripts/dog solve0
23
+ ../test/aml_comparisons/scripts/dog --statistic Ratio --baseline gurobi solve0
24
+ ../test/aml_comparisons/scripts/dog --statistic Ratio --baseline coek solve0
25
+
26
+ echo " "
27
+ echo " WRITER RESULTS"
28
+ echo " "
29
+
30
+ ../test/aml_comparisons/scripts/dog writer
31
+ ../test/aml_comparisons/scripts/dog --statistic Ratio --baseline gurobi writer
32
+ ../test/aml_comparisons/scripts/dog --statistic Ratio --baseline coek writer
33
+
34
+ if [[ -d /coek_performance_results ]]; then
35
+ CI_COMMIT_TITLE_MOD=" ${CI_COMMIT_TITLE// / _} "
36
+ python ../test/aml_comparisons/scripts/to_csv.py --dirname /coek_performance_results/${BRANCH_NAME} --branch_name ${BRANCH_NAME} --ci_commit_sha ${CI_COMMIT_SHA} --ci_commit_title ${CI_COMMIT_TITLE_MOD}
37
+ python ../test/aml_comparisons/scripts/compare.py --artifact_dir=/coek_performance_results --branch_name=${BRANCH_NAME}
38
+ fi
39
+
You can’t perform that action at this time.
0 commit comments