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

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 17 23:23:01 PDT 2003


Changes in directory llvm/test/Programs:

TEST.nightly.report updated: 1.11 -> 1.12

---
Log message:

Format times more sanely
Add a column that shows performance of LLC vs performance of GCC


---
Diffs of the changes:

Index: llvm/test/Programs/TEST.nightly.report
diff -u llvm/test/Programs/TEST.nightly.report:1.11 llvm/test/Programs/TEST.nightly.report:1.12
--- llvm/test/Programs/TEST.nightly.report:1.11	Fri Aug 15 14:30:28 2003
+++ llvm/test/Programs/TEST.nightly.report	Sun Aug 17 23:21:57 2003
@@ -9,6 +9,25 @@
 
 my $WallTimeRE = "[A-Za-z0-9.: ]+\\(([0-9.]+) wall clock";
 
+# FormatTime - Convert a time from 1m23.45 into 83.45
+sub FormatTime {
+  my $Time = shift;
+  if ($Time =~ m/([0-9]+)m([0-9.]+)/) {
+    $Time = sprintf("%7.4f", $1*60.0+$2);
+  }
+  return $Time;
+}
+
+sub GCCLLCRatio {
+  my ($Cols, $Col) = @_;
+  if ($Cols->[$Col-2] ne "*" and $Cols->[$Col-4] ne "*" and
+      $Cols->[$Col-2] != "0") {
+    return sprintf("%3.2f%%", $Cols->[$Col-4]/$Cols->[$Col-2]);
+  } else {
+    return "n/a";
+  }
+}
+
 # These are the columns for the report.  The first entry is the header for the
 # column, the second is the regex to use to match the value.  Empty list create
 # separators, and closures may be put in for custom processing.
@@ -24,8 +43,9 @@
  ["JIT<br>codegen" , "TEST-RESULT-jit-comptime: $WallTimeRE"],
  ["Machine<br>code", 'TEST-RESULT-jit-machcode: *([0-9]+).*bytes of machine code'],
  [],
- ["GCC"      , 'TEST-RESULT-nat-time: real\s*([.0-9m]+)'],
- ["CBE"      , 'TEST-RESULT-cbe-time: real\s*([.0-9m]+)'],
- ["LLC"      , 'TEST-RESULT-llc-time: real\s*([.0-9m]+)'],
- ["JIT"      , 'TEST-RESULT-jit-time: real\s*([.0-9m]+)']
+ ["GCC"      , 'TEST-RESULT-nat-time: real\s*([.0-9m]+)', \&FormatTime],
+ ["CBE"      , 'TEST-RESULT-cbe-time: real\s*([.0-9m]+)', \&FormatTime],
+ ["LLC"      , 'TEST-RESULT-llc-time: real\s*([.0-9m]+)', \&FormatTime],
+ ["JIT"      , 'TEST-RESULT-jit-time: real\s*([.0-9m]+)', \&FormatTime],
+ ["GCC/LLC"  , \&GCCLLCRatio]
 );





More information about the llvm-commits mailing list