summaryrefslogtreecommitdiff
path: root/perfratio
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 15:54:53 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 15:54:53 +0000
commitd7d99c8433b3bd35c8bad352ebd1fc49cff45264 (patch)
tree83c0e24403636a9a639ebf5c2fcd4e3b7efecef7 /perfratio
R6.6 is the Xorg base-lineXORG-MAIN
Diffstat (limited to 'perfratio')
-rw-r--r--perfratio40
1 files changed, 40 insertions, 0 deletions
diff --git a/perfratio b/perfratio
new file mode 100644
index 0000000..6ff3a12
--- /dev/null
+++ b/perfratio
@@ -0,0 +1,40 @@
+#!/bin/sh
+awk '
+/^ 1/ && READY == 0 { printf (" 1 ");
+ for (i = 2; i < NF; i++)
+ printf (" %2d ", i);
+ printf (" Operation\n");
+ next;
+ }
+/^---/ { printf ("--------");
+ for (i = 2; i < NF; i++)
+ printf (" ------");
+ printf (" ---------\n");
+ READY=1; next;
+ }
+READY==1 {
+ base=$1;
+ printf ("%8.1f", base);
+ for (i = 2; i < '$1'; i++) {
+ if (base == 0)
+ printf (" lots ", $i);
+ else {
+ rate=$i/base;
+ if (rate < .1)
+ printf (" %6.3f", rate);
+ else if (rate < 1000)
+ printf (" %6.2f", rate);
+ else
+ printf (" %6.0f", rate);
+ }
+ }
+ printf (" ");
+ for (; i <= NF; i++)
+ {
+ printf ("%s ", $i);
+ }
+ printf ("\n");
+ next;
+ }
+ { print $0; }
+'