Skip to content

Commit

Permalink
go back to old merge bench reports
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 13, 2025
1 parent 051c538 commit aa3e63c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
9 changes: 3 additions & 6 deletions .github/scripts/merge-bench-reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ for report in ./reports/*; do
FILE_PATH=$(echo $(ls $report))

# Extract the $NAME_PLURAL array from each report and merge it
if [ "$2" == "1" ]; then
echo $report
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report")")
else
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report/$FILE_PATH")")
fi
combined_reports=$(jq '[."'"$NAME_PLURAL"'"[]] + '"$combined_reports" <<< "$(cat "$report/$FILE_PATH")")
done

combined_reports=$(jq '[."'$NAME_PLURAL'"[]] + '"$combined_reports" <<< "$(cat ./$REPORT_NAME.json)")

# Wrap the merged memory reports into a new object as to keep the $NAME_PLURAL key
final_report="{\"$NAME_PLURAL\": $combined_reports}"

Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,9 @@ jobs:
mv gates_report_brillig.json ../reports/gates_report_brillig_inliner_max.json
./gates_report_brillig.sh 0
jq '.programs |= map(.package_name |= (. + "_inliner_zero"))' gates_report_brillig.json > gates_report_brillig.json
cat gates_report_brillig.json
mv gates_report_brillig.json ../reports/gates_report_brillig_inliner_zero.json
./gates_report_brillig.sh -9223372036854775808
jq '.programs |= map(.package_name |= (. + "_inliner_min"))' gates_report_brillig.json > gates_report_brillig.json
cat gates_report_brillig.json
mv gates_report_brillig.json ../reports/gates_report_brillig_inliner_min.json
- name: Merge compilation reports using jq
Expand Down Expand Up @@ -454,9 +452,8 @@ jobs:

- name: Merge compilation reports using jq
run: |
mv ./compilation_report.json ./reports/compilation_report.json
mv ./.github/scripts/merge-bench-reports.sh merge-bench-reports.sh
./merge-bench-reports.sh compilation_report 0
./merge-bench-reports.sh compilation_report
- name: Parse compilation report
id: compilation_report
Expand Down Expand Up @@ -592,9 +589,8 @@ jobs:

- name: Merge memory reports using jq
run: |
mv ./memory_report.json ./reports/memory_report.json
mv ./.github/scripts/merge-bench-reports.sh merge-bench-reports.sh
./merge-bench-reports.sh memory_report 0
./merge-bench-reports.sh memory_report
- name: Parse compilation memory report
id: compilation_mem_report
Expand Down Expand Up @@ -637,9 +633,8 @@ jobs:

- name: Merge memory reports using jq
run: |
mv ./memory_report.json ./reports/memory_report.json
mv ./.github/scripts/merge-bench-reports.sh merge-bench-reports.sh
./merge-bench-reports.sh memory_report 0
./merge-bench-reports.sh memory_report
# Rename the memory report as to not clash with the compilation memory report file name
cp memory_report.json execution_memory_report.json
Expand Down Expand Up @@ -684,9 +679,8 @@ jobs:

- name: Merge execution reports using jq
run: |
mv ./execution_report.json ./reports/execution_report.json
mv ./.github/scripts/merge-bench-reports.sh merge-bench-reports.sh
./merge-bench-reports.sh execution_report 0
./merge-bench-reports.sh execution_report
- name: Parse execution report
id: execution_report
Expand Down

0 comments on commit aa3e63c

Please sign in to comment.