mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
add percentiles to perf script
This commit is contained in:
parent
8d4735d755
commit
b5bafc6bfd
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ set -e
|
||||||
f=$(cat $1)
|
f=$(cat $1)
|
||||||
a=$(echo "$f"|grep "LUA: \["|sed 's/LUA: \[//g;s/].*//;s/ //g'|awk -F',' '{for (i=1; i<=NF; i++) cols[i] = cols[i] $i " "} END {for (i in cols) {gsub(/ $/, "", cols[i]); gsub(/ /, ",", cols[i]); print "{" cols[i] "}"}}')
|
a=$(echo "$f"|grep "LUA: \["|sed 's/LUA: \[//g;s/].*//;s/ //g'|awk -F',' '{for (i=1; i<=NF; i++) cols[i] = cols[i] $i " "} END {for (i in cols) {gsub(/ $/, "", cols[i]); gsub(/ /, ",", cols[i]); print "{" cols[i] "}"}}')
|
||||||
for b in $a;do
|
for b in $a;do
|
||||||
echo "{mean$b,standarddeviation$b,max$b,len$b}"|kalc
|
echo "{mean$b,standarddeviation$b,max$b,percentile($b,99),percentile($b,99.9),len$b}"|kalc
|
||||||
done
|
done
|
||||||
|
|
||||||
a=$(echo "$f"|grep "LUA: {"|sed 's/LUA: {//g;s/}.*//;s/ //g'|sed 's/,/\n/g'|sort -n)
|
a=$(echo "$f"|grep "LUA: {"|sed 's/LUA: {//g;s/}.*//;s/ //g'|sed 's/,/\n/g'|sort -n)
|
||||||
for i in $(echo "$a"|sed 's/:.*//g'|uniq);do
|
for i in $(echo "$a"|sed 's/:.*//g'|uniq);do
|
||||||
b=$(echo {$(echo "$a"|grep "^$i:"|sed 's/.*://g')}|sed 's/ /,/g')
|
b=$(echo {$(echo "$a"|grep "^$i:"|sed 's/.*://g')}|sed 's/ /,/g')
|
||||||
echo -ne "$i "
|
echo -ne "$i "
|
||||||
echo "{mean$b,standarddeviation$b,max$b,len$b}"|kalc
|
echo "{mean$b,standarddeviation$b,max$b,percentile($b,99),percentile($b,99.9),len$b}"|kalc
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue