summaryrefslogtreecommitdiff
path: root/x11pcomp.cpp
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-01-22 14:41:33 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-01-24 10:43:23 -0500
commit8b8f94bca1576e7365c492cfc8131d5aa7bcd7c8 (patch)
tree891dc182ea83e422a152c9dedbb1e0f37ea3b582 /x11pcomp.cpp
parent490ceddc3e97e8c5bf1ed61265525c213abf65d1 (diff)
config: substitute x11perfcompdir using Autoconf @x11perfcompdir@
Use the Autoconf recommended way of substituting bindir and friends, see http://www.gnu.org/software/autoconf/manual/autoconf.html Use # sign for comment in script. Only sed is used, drop the cpp terminology. Reviewed-by: RĂ©mi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'x11pcomp.cpp')
-rw-r--r--x11pcomp.cpp103
1 files changed, 0 insertions, 103 deletions
diff --git a/x11pcomp.cpp b/x11pcomp.cpp
deleted file mode 100644
index be7d397..0000000
--- a/x11pcomp.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-XCOMM! /bin/sh
-XCOMM
-XCOMM $XFree86$
-XCOMM
-XCOMM Collects multiple outputs of x11perf. Just feed it a list of files, each
-XCOMM containing the output from an x11perf run, and this shell will extract the
-XCOMM object/second information and show it in tabular form. An 80-column line
-XCOMM is big enough to compare 4 different servers.
-XCOMM
-XCOMM This script normally uses the results from $1 to extract the test label
-XCOMM descriptions, so you can run x11perf on a subset of the test and then
-XCOMM compare the results. But note that x11perffill requires the labels file
-XCOMM to be a superset of the x11perf results file. If you run into an ugly
-XCOMM situation in which none of the servers completes the desired tests
-XCOMM (quite possible on non-DEC servers :), you can use -l <filename> as $1 and
-XCOMM $2 to force x11perfcomp to use the labels stored in file $2. (You can run
-XCOMM x11perf with the -labels option to generate such a file.)
-XCOMM
-XCOMM Mark Moraes, University of Toronto <moraes@csri.toronto.edu>
-XCOMM Joel McCormack, DEC Western Research Lab <joel@decwrl.dec.com>
-XCOMM
-
-PATH=LIBPATH:.:$PATH
-export PATH
-
-set -e
-tmp=${TMPDIR-/tmp}/rates.$$
-trap "rm -rf $tmp" 0 1 2 15
-mkdir $tmp || exit 1
-mkdir $tmp/rates
-ratio=
-allfiles=
-XCOMM Include relative rates in output? Report only relative rates?
-case $1 in
--r|-a)
- ratio=1
- shift;
- ;;
--ro)
- ratio=2
- shift;
- ;;
-esac
-XCOMM Get either the provided label file, or construct one from all the
-XCOMM files given.
-case $1 in
--l) cp $2 $tmp/labels
- shift; shift
- ;;
-*) for file in "$@"; do
- awk '$2 == "reps" || $2 == "trep" { print $0; next; }' $file |
- sed 's/^.*: //' |
- sed 's/ /_/g' |
- awk 'NR > 1 { printf ("%s %s\n", prev, $0); } \
- { prev = $0; }'
- done | tsort 2>/dev/null | sed 's/_/ /g' > $tmp/labels
- ;;
-esac
-XCOMM Go through all files, and create a corresponding rate file for each
-n=1
-for i
-do
-XCOMM Get lines with average numbers, fill in any tests that may be missing
-XCOMM then extract the rate field
- base=`basename $i`
- (echo " $n "
- echo '--------'
- awk '$2 == "reps" || $2 == "trep" { \
- line = $0; \
- next; \
- } \
- NF == 0 && line != "" { \
- print line; \
- line=""; \
- next; \
- } \
- ' $i > $tmp/$n.avg
- fillblnk $tmp/$n.avg $tmp/labels |
- sed 's/( *\([0-9]*\)/(\1/' |
- awk '$2 == "reps" || $2 == "trep" { \
- n = substr($6,2,length($6)-7); \
- printf "%8s\n", n; \
- }'
- ) > $tmp/rates/$n
- echo "$n: $i"
- allfiles="$allfiles$tmp/rates/$n "
- n=`expr $n + 1`
-done
-case x$ratio in
-x)
- ratio=/bin/cat
- ;;
-x1)
- ratio="perfboth $n"
- ;;
-*)
- ratio="perfratio $n"
- ;;
-esac
-echo ''
-(echo Operation; echo '---------'; cat $tmp/labels) |
-paste $allfiles - | sed 's/ / /g' | $ratio
-rm -rf $tmp