Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Dec 23, 2024
1 parent c629360 commit 2d02cf1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test_programs/compilation_report.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -e

SCRIPT_DIR=$(dirname "$0")
current_dir=$(pwd)
base_path="$current_dir/execution_success"

Expand Down Expand Up @@ -51,11 +52,11 @@ for dir in ${tests_to_profile[@]}; do

TIMES=($(jq -r '. | select(.target == "nargo::ops::compile" and .fields.message == "close") | .fields."time.busy"' ./tmp/*))

AVG_TIME=$(awk -v RS=" " '
AVG_TIME=$(awk -v RS=" " -v script="$SCRIPT_DIR/parse_time.sh" '
{
# Times are formatted annoyingly so we need to parse it.
"./parse_time.sh "$1 | getline current_time
close("./parse_time.sh "$1)
script" "$1 | getline current_time
close(script" "$1)
sum += current_time;
n++;
}
Expand Down

0 comments on commit 2d02cf1

Please sign in to comment.