[llvm-commits] CVS: poolalloc/test/TEST.poolalloc.report

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 6 14:50:30 CST 2004



Changes in directory poolalloc/test:

TEST.poolalloc.report updated: 1.18 -> 1.19

---
Log message:

Vikram wants % runtime, not speedup ratio


---
Diffs of the changes:  (+5 -13)

Index: poolalloc/test/TEST.poolalloc.report
diff -u poolalloc/test/TEST.poolalloc.report:1.18 poolalloc/test/TEST.poolalloc.report:1.19
--- poolalloc/test/TEST.poolalloc.report:1.18	Sat Nov  6 13:48:11 2004
+++ poolalloc/test/TEST.poolalloc.report	Sat Nov  6 14:50:20 2004
@@ -8,24 +8,16 @@
 $SortCol = 0;
 $TrimRepeatedPrefix = 1;
 
-sub Ratio {
+sub RuntimePercent {
   my ($Cols, $Col) = @_;
   if ($Cols->[$Col-1] ne "*" and $Cols->[3] ne "*" and
       $Cols->[$Col-1] != "0") {
-    return sprintf "%1.3f", $Cols->[3]/$Cols->[$Col-1];
+    return sprintf "%7.2f", 100*$Cols->[$Col-1]/$Cols->[3];
   } else {
     return "n/a";
   }
 }
 
-sub FormatTime {
-  my $Time = shift;
-  if ($Time =~ m/([0-9]+)[m:]([0-9.]+)/) {
-    $Time = sprintf("%7.3f", $1*60.0+$2);
-  }
-  return $Time;
-}
-
 @LatexColumns = (1, 5, 8, 12, 9, 13, 14, 15, 2, 16);
 
 my $OLDEN     = 'MultiSource/Benchmarks/Olden';
@@ -66,13 +58,13 @@
  ["NormalTime",   'CBE-RUN-TIME-NORMAL: program\s*([.0-9m:]+)'],
 
  ["OnlyOHTime", 'CBE-RUN-TIME-ONLYOVERHEAD: program\s*([.0-9m:]+)'],
- ["OO Speedup", \&Ratio],
+ ["OO run%", \&RuntimePercent],
 
  ["AllNodesTime", 'CBE-RUN-TIME-ALLNODES: program\s*([.0-9m:]+)'],
- ["AN Speedup", \&Ratio],
+ ["AN run%", \&RuntimePercent],
 
  ["PoolAllocTime", 'CBE-RUN-TIME-POOLALLOC: program\s*([.0-9m:]+)'],
- ["PA Speedup", \&Ratio],
+ ["PA run%", \&RuntimePercent],
 
  ["AP NumPools",          '([0-9]+).*Number of pools allocated'],
  ["AP Typesafe",          '([0-9]+).*Number of typesafe pools'],





More information about the llvm-commits mailing list