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

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 17 13:11:03 PST 2004


Changes in directory poolalloc/test:

TEST.poolalloc.report updated: 1.9 -> 1.10

---
Log message:

Add support for tests that take more than 60s to run, and format the time nicely


---
Diffs of the changes:  (+10 -2)

Index: poolalloc/test/TEST.poolalloc.report
diff -u poolalloc/test/TEST.poolalloc.report:1.9 poolalloc/test/TEST.poolalloc.report:1.10
--- poolalloc/test/TEST.poolalloc.report:1.9	Fri Feb 13 16:03:07 2004
+++ poolalloc/test/TEST.poolalloc.report	Tue Feb 17 13:10:01 2004
@@ -18,6 +18,14 @@
   }
 }
 
+sub FormatTime {
+  my $Time = shift;
+  if ($Time =~ m/([0-9]+)[m:]([0-9.]+)/) {
+    $Time = sprintf("%7.3f", $1*60.0+$2);
+  }
+  return $Time;
+}
+
 @LatexColumns = (2, 3, 4, 5, 6, 7);
 
 my $OLDEN     = 'MultiSource/Benchmarks/Olden';
@@ -60,8 +68,8 @@
  ["Name:" , '\'([^\']+)\' Program'],
  [],
 # Times
- ["Normal<br>ExeTime"  ,  'CBE-RUN-TIME-NORMAL: real[\t ]+0m([0-9.]+)'],
- ["PoolAlloc<br>ExeTime", 'CBE-RUN-TIME-POOLALLOC: real[\t ]+0m([0-9.]+)'],
+ ["Normal<br>ExeTime"  ,  'CBE-RUN-TIME-NORMAL: real\s*([.0-9m:]+)',    \&FormatTime],
+ ["PoolAlloc<br>ExeTime", 'CBE-RUN-TIME-POOLALLOC: real\s*([.0-9m:]+)', \&FormatTime],
  ["Speedup", \&Ratio],
  ["NumPools",             '([0-9]+).*Number of pools allocated'],
  ["NumTSPools",           '([0-9]+).*Number of typesafe pools'],





More information about the llvm-commits mailing list