Skip to content

Commit

Permalink
Get data
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Jan 14, 2025
1 parent e046e16 commit af7f0a0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions plotting/get_data
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -euxo pipefail

# find sorting-output -iname output_time -print0 | xargs -0 grep --only-matching --perl-regexp 'Elapsed \(wall clock\) time \(h:mm:ss or m:ss\): \K[0-9:]+\.[0-9]+$' | awk --field-separator=":" '
(
for file in $(find sorting-output -iname output_time); do
n="$(echo ${file} | sed -n 's|sorting-output/\([0-9]*\)-.*|\1|p')"
system="$(echo ${file} | grep --only-matching --extended-regexp "ceno|sp1")"
echo -ne "${n}\t${system}\t"
grep --only-matching --perl-regexp 'Elapsed \(wall clock\) time \(h:mm:ss or m:ss\): \K[0-9:]+\.[0-9]+$' "$file" | awk --field-separator=":" '
{
if (NF == 3) {
print ($1 * 3600) + ($2 * 60) + $3
} else if (NF == 2) {
print ($1 * 60) + $2
}
}'
done
) | sort --human-numeric-sort

0 comments on commit af7f0a0

Please sign in to comment.