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 >
Text File  |  1989-10-23  |  728b  |  47 lines

  1. head     1.1;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @# @;
  6.  
  7.  
  8. 1.1
  9. date     89.10.23.18.51.30;  author joel;  state Exp;
  10. branches ;
  11. next     ;
  12.  
  13.  
  14. desc
  15. @Shells for comparing x11perf outputs
  16. @
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#! /bin/sh
  26. # Takes an output from x11perf and extracts the best figures for each
  27. # operation. To compare this with other servers, you may want to
  28. # run getrate.sh and then paste the results of that with getlabel.sh
  29. # Mark Moraes, University of Toronto
  30. sed 's/( *\([0-9]*\)/(\1/' $1 |
  31.     awk '$2 == "reps" {
  32.     n = substr($6,2,length($6)-7);
  33.     if (n > best) {
  34.         best = n;
  35.         bestline = $0
  36.     }
  37.     next;
  38.     }
  39.     NF == 0 && bestline != "" {
  40.     print bestline;
  41.     bestline="";
  42.     best = 0;
  43.     next;
  44.     }
  45. '
  46. @
  47.