Last active
January 24, 2021 14:21
Revisions
-
justdoit0823 revised this gist
Jan 24, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ // min, mean, max, p50, p90, p99, p999 sort -k1 -n|awk '{s[NR]=$1} END {print "min:"s[1], "mean:"s[int(NR * 0.5)], "p90:"s[int(NR * 0.9)], "p95:"s[int(NR * 0.95)], "p99:"s[int(NR * 0.99)], "p999:"s[int(NR * 0.999)], "max:"s[NR]}' -
justdoit0823 revised this gist
Jan 23, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ // min, mean, max, p50, p90, p99, p999 awk '{s[NR]=$1} END {print "min:"s[1], "mean:"s[int(NR * 0.5)], "p90:"s[int(NR * 0.9)], "p95:"s[int(NR * 0.95)], "p99:"s[int(NR * 0.99)], "p999:"s[int(NR * 0.999)], "max:"s[NR]}' -
justdoit0823 created this gist
Jan 13, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ // min, avg, max awk '{if (min = 0) {min = $1}; if ($1 < min) {min=$1}; if ($1 > max) {max =$1}; s += $1} END {print min, s / NR, max}'