home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
x
/
x11p-13.zip
/
RCS
/
getbest.sh,v
< prev
next >
Wrap
Text File
|
1989-10-23
|
728b
|
47 lines
head 1.1;
access ;
symbols ;
locks ; strict;
comment @# @;
1.1
date 89.10.23.18.51.30; author joel; state Exp;
branches ;
next ;
desc
@Shells for comparing x11perf outputs
@
1.1
log
@Initial revision
@
text
@#! /bin/sh
# Takes an output from x11perf and extracts the best figures for each
# operation. To compare this with other servers, you may want to
# run getrate.sh and then paste the results of that with getlabel.sh
# Mark Moraes, University of Toronto
sed 's/( *\([0-9]*\)/(\1/' $1 |
awk '$2 == "reps" {
n = substr($6,2,length($6)-7);
if (n > best) {
best = n;
bestline = $0
}
next;
}
NF == 0 && bestline != "" {
print bestline;
bestline="";
best = 0;
next;
}
'
@