Skip to content

Commit

Permalink
chore(ci): Display times in compilation and execution reports only wi…
Browse files Browse the repository at this point in the history
…th seconds (#6880)
  • Loading branch information
vezenovm authored Dec 19, 2024
1 parent 1a0a5f6 commit 4b35fbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ jobs:
- name: Parse compilation report
id: compilation_report
uses: noir-lang/noir-bench-report@0d7464a8c39170523932d7846b6e6b458a294aea
uses: noir-lang/noir-bench-report@e408e131e96c3615b4f820d7d642360fb4d6e2f4
with:
report: compilation_report.json
header: |
Expand Down Expand Up @@ -538,7 +538,7 @@ jobs:
- name: Parse memory report
id: memory_report
uses: noir-lang/noir-bench-report@0d7464a8c39170523932d7846b6e6b458a294aea
uses: noir-lang/noir-bench-report@e408e131e96c3615b4f820d7d642360fb4d6e2f4
with:
report: memory_report.json
header: |
Expand Down Expand Up @@ -582,7 +582,7 @@ jobs:
- name: Parse execution report
id: execution_report
uses: noir-lang/noir-bench-report@0954121203ee55dcda5c7397b9c669c439a20922
uses: noir-lang/noir-bench-report@e408e131e96c3615b4f820d7d642360fb4d6e2f4
with:
report: execution_report.json
header: |
Expand Down
2 changes: 1 addition & 1 deletion test_programs/compilation_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ for dir in ${tests_to_profile[@]}; do
# Keep only last three decimal points
AVG_TIME=$(awk '{printf "%.3f\n", $1}' <<< "$AVG_TIME")
echo -e " {\n \"artifact_name\":\"$PACKAGE_NAME\",\n \"time\":\"0m"$AVG_TIME"s\"" >> $current_dir/compilation_report.json
echo -e " {\n \"artifact_name\":\"$PACKAGE_NAME\",\n \"time\":\""$AVG_TIME"s\"" >> $current_dir/compilation_report.json
if (($ITER == $NUM_ARTIFACTS)); then
echo "}" >> $current_dir/compilation_report.json
Expand Down
2 changes: 1 addition & 1 deletion test_programs/execution_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ for dir in ${tests_to_profile[@]}; do
# Keep only last three decimal points
AVG_TIME=$(awk '{printf "%.3f\n", $1}' <<< "$AVG_TIME")
echo -e " {\n \"artifact_name\":\"$PACKAGE_NAME\",\n \"time\":\"0m"$AVG_TIME"s\"" >> $current_dir/execution_report.json
echo -e " {\n \"artifact_name\":\"$PACKAGE_NAME\",\n \"time\":\""$AVG_TIME"s\"" >> $current_dir/execution_report.json
if (($ITER == $NUM_ARTIFACTS)); then
echo "}" >> $current_dir/execution_report.json
Expand Down

0 comments on commit 4b35fbf

Please sign in to comment.