diff --git a/.github/workflows/reports.yml b/.github/workflows/reports.yml index b21b4a6baec..e14f116d105 100644 --- a/.github/workflows/reports.yml +++ b/.github/workflows/reports.yml @@ -116,8 +116,19 @@ jobs: - name: Generate Brillig bytecode size report working-directory: ./test_programs run: | - ./gates_report_brillig.sh - mv gates_report_brillig.json ../gates_report_brillig.json + mkdir ./reports + + ./gates_report_brillig.sh 9223372036854775807 + jq '.programs |= map(.package_name |= (. + "_inliner_max"))' 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 > ./reports/gates_report_brillig_inliner_zero.json + + ./gates_report_brillig.sh -9223372036854775808 + jq '.programs |= map(.package_name |= (. + "_inliner_min"))' gates_report_brillig.json > ./reports/gates_report_brillig_inliner_min.json + + # Merge all reports + jq -s '{ programs: map(.programs) | add }' ./reports/* > ../gates_report_brillig.json - name: Compare Brillig bytecode size reports id: brillig_bytecode_diff @@ -165,8 +176,19 @@ jobs: - name: Generate Brillig execution report working-directory: ./test_programs run: | - ./gates_report_brillig_execution.sh - mv gates_report_brillig_execution.json ../gates_report_brillig_execution.json + mkdir ./reports + + ./gates_report_brillig_execution.sh 9223372036854775807 + jq '.programs |= map(.package_name |= (. + "_inliner_max"))' gates_report_brillig_execution.json > ./reports/gates_report_brillig_execution_inliner_max.json + + ./gates_report_brillig_execution.sh 0 + jq '.programs |= map(.package_name |= (. + "_inliner_zero"))' gates_report_brillig_execution.json > ./reports/gates_report_brillig_execution_inliner_zero.json + + ./gates_report_brillig_execution.sh -9223372036854775808 + jq '.programs |= map(.package_name |= (. + "_inliner_min"))' gates_report_brillig_execution.json > ./reports/gates_report_brillig_execution_inliner_min.json + + # Merge all reports + jq -s '{ programs: map(.programs) | add }' ./reports/* > ../gates_report_brillig_execution.json - name: Compare Brillig execution reports id: brillig_execution_diff diff --git a/test_programs/gates_report_brillig.sh b/test_programs/gates_report_brillig.sh index 7343857a3c5..3f2a4542735 100755 --- a/test_programs/gates_report_brillig.sh +++ b/test_programs/gates_report_brillig.sh @@ -28,6 +28,6 @@ done echo "]" >> Nargo.toml -nargo info --force-brillig --json | jq -r ".programs[].functions = []" > gates_report_brillig.json +nargo info --silence-warnings --force-brillig --json --inliner-aggressiveness $1 | jq -r ".programs[].functions = []" > gates_report_brillig.json rm Nargo.toml diff --git a/test_programs/gates_report_brillig_execution.sh b/test_programs/gates_report_brillig_execution.sh index 219fbb5c11a..c6a904f8b93 100755 --- a/test_programs/gates_report_brillig_execution.sh +++ b/test_programs/gates_report_brillig_execution.sh @@ -42,6 +42,6 @@ done echo "]" >> Nargo.toml -nargo info --profile-execution --json | jq -r ".programs[].functions = []" > gates_report_brillig_execution.json +nargo info --silence-warnings --profile-execution --json --inliner-aggressiveness $1 | jq -r ".programs[].functions = []" > gates_report_brillig_execution.json rm Nargo.toml