Skip to content

Commit

Permalink
show percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 8, 2024
1 parent 70de733 commit 3f143ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
set -x
sum=$(
printf "\`\`\`text\n"
awk -F ',' '{ arr[$1]+=$2 } END { for (key in arr) printf("%s.xsl\t%s\n", key, arr[key])}' eo-runtime/measures.csv | sort -g -k 2 | tac | column -t
awk -F ',' '{ a[$1]+=$2; s+=$2; } END { for (k in a) printf("%s.xsl\t%d\t%0.2f%%\n", k, a[k], 100 * a[k]/s)}' eo-runtime/measures.csv | sort -g -k 2 | tac | column -t
printf "\`\`\`\n\n"
echo "The results were calculated in [this GHA job][benchmark-gha]"
echo "on $(date +'%Y-%m-%d') at $(date +'%H:%M'),"
Expand Down

0 comments on commit 3f143ff

Please sign in to comment.