Skip to content

Commit

Permalink
Use configuration names instead indices
Browse files Browse the repository at this point in the history
  • Loading branch information
DaGeRe committed Nov 9, 2024
1 parent 8485fd6 commit 509bd3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analysis/getGHActionsFormat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ function getSum {
awk '{sum += $1; square += $1^2} END {print "Average: "sum/NR" Standard Deviation: "sqrt(square / NR - (sum/NR)^2)" Count: "NR}'
}

source ../labels.sh

export size=10
result="["

Expand All @@ -16,8 +18,9 @@ do
done | getSum)
value=$(echo $values | awk '{print $2}')
standardDeviation=$(echo $values | awk '{print $5}')

result="$result{\"name\": \"Configuration $variant\", \"unit\": \"ns\", \"value\": $value, \"range\": $standardDeviation},"

configurationName="${TITLE[$variant]}"
result="$result{\"name\": \"$configurationName\", \"unit\": \"ns\", \"value\": $value, \"range\": $standardDeviation},"
done
withoutLastKomma=${result::-1}

Expand Down

0 comments on commit 509bd3e

Please sign in to comment.