Generate a gnuplot script for any program and any test (like llc or gcc)
[oota-llvm.git] / utils / NightlyTest.gnuplot
index dd0911a8d27a4abd871ff49970165f88a72a906c..e24c5060419885ba468a3afa574c35fede9fe805 100644 (file)
@@ -5,7 +5,7 @@ set output "running_loc.png"
 set xlabel "Date" 
 set ylabel "Lines of Code"
 set xdata time
-set timefmt "%Y-%m-%d:"
+set timefmt "%Y-%m-%d-%H:%M:%S:"
 set format x "%b %d, %Y"
 
 ## Various labels for the graph
@@ -14,13 +14,19 @@ set label "Modulo Sched\n   checkin" at "2003-03-28:", 119500
 set label "Reoptimizer\n checkins" at "2003-06-01:", 134000
 set label "'dummy'\nfunction" at "2003-07-20:", 150000
 set label "Reoptimizer\n removal" at "2003-08-10:", 132000
+set label "llvm-db\ncheckin" at "2004-01-04:", 145000
+set label "llvm/projects" at "2004-01-04:", 151000
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 plot "running_loc.txt" using 1:2 title '' with lines, \
      "running_loc.txt" using 1:2 title "Date vs. Lines of Code" with lines
 
 ##------- Plot large Date vs LOC ----
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_loc_large.png"
 plot "running_loc.txt" using 1:2 title '', \
      "running_loc.txt" using 1:2 title "Date vs. Lines of Code" with lines
@@ -32,8 +38,10 @@ set nolabel
 ##------- Olden CBE performance ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_cbe_time.png"
-set ylabel "CBE compiled execution time"
+set ylabel "CBE compiled execution time (s)"
 plot "running_Olden_cbe_time.txt" u 1:2 t '' with lines, \
      "running_Olden_cbe_time.txt" u 1:2 t "bh" with lines, \
      "running_Olden_cbe_time.txt" u 1:3 t "bisort" with lines, \
@@ -48,6 +56,8 @@ plot "running_Olden_cbe_time.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_cbe_time_large.png"
 plot "running_Olden_cbe_time.txt" u 1:2 t '' with lines, \
      "running_Olden_cbe_time.txt" u 1:2 t "bh" with lines, \
@@ -65,8 +75,10 @@ plot "running_Olden_cbe_time.txt" u 1:2 t '' with lines, \
 ##------- Olden JIT performance ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_jit_time.png"
-set ylabel "JIT execution time"
+set ylabel "JIT execution time (s)"
 plot "running_Olden_jit_time.txt" u 1:2 t '' with lines, \
      "running_Olden_jit_time.txt" u 1:2 t "bh" with lines, \
      "running_Olden_jit_time.txt" u 1:3 t "bisort" with lines, \
@@ -81,6 +93,8 @@ plot "running_Olden_jit_time.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_jit_time_large.png"
 plot "running_Olden_jit_time.txt" u 1:2 t '' with lines, \
      "running_Olden_jit_time.txt" u 1:2 t "bh" with lines, \
@@ -98,8 +112,10 @@ plot "running_Olden_jit_time.txt" u 1:2 t '' with lines, \
 ##------- Olden LLC performance ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_llc_time.png"
-set ylabel "LLC compiled execution time"
+set ylabel "LLC compiled execution time (s)"
 plot "running_Olden_llc_time.txt" u 1:2 t '' with lines, \
      "running_Olden_llc_time.txt" u 1:2 t "bh" with lines, \
      "running_Olden_llc_time.txt" u 1:3 t "bisort" with lines, \
@@ -114,6 +130,8 @@ plot "running_Olden_llc_time.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_llc_time_large.png"
 plot "running_Olden_llc_time.txt" u 1:2 t '' with lines, \
      "running_Olden_llc_time.txt" u 1:2 t "bh" with lines, \
@@ -132,8 +150,10 @@ plot "running_Olden_llc_time.txt" u 1:2 t '' with lines, \
 ##------- Olden optimizer time ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_opt_time.png"
-set ylabel "Time to run the optimizer"
+set ylabel "Time to run the optimizer (s)"
 plot "running_Olden_opt_time.txt" u 1:2 t '' with lines, \
      "running_Olden_opt_time.txt" u 1:2 t "bh" with lines, \
      "running_Olden_opt_time.txt" u 1:3 t "bisort" with lines, \
@@ -148,6 +168,8 @@ plot "running_Olden_opt_time.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_opt_time_large.png"
 plot "running_Olden_opt_time.txt" u 1:2 t '' with lines, \
      "running_Olden_opt_time.txt" u 1:2 t "bh" with lines, \
@@ -166,8 +188,10 @@ plot "running_Olden_opt_time.txt" u 1:2 t '' with lines, \
 ##------- Machine code size ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_machcode.png"
-set ylabel "Program machine code size"
+set ylabel "Program machine code size (bytes)"
 plot "running_Olden_machcode.txt" u 1:2 t '' with lines, \
      "running_Olden_machcode.txt" u 1:2 t "bh" with lines, \
      "running_Olden_machcode.txt" u 1:3 t "bisort" with lines, \
@@ -182,6 +206,8 @@ plot "running_Olden_machcode.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_machcode_large.png"
 plot "running_Olden_machcode.txt" u 1:2 t '' with lines, \
      "running_Olden_machcode.txt" u 1:2 t "bh" with lines, \
@@ -200,8 +226,10 @@ plot "running_Olden_machcode.txt" u 1:2 t '' with lines, \
 ##------- Bytecode size ----
 
 set size .75,.75
+set xtics rotate
+set xlabel 0,-1
 set output "running_Olden_bytecode.png"
-set ylabel "Program bytecode size"
+set ylabel "Program bytecode size (bytes)"
 plot "running_Olden_bytecode.txt" u 1:2 t '' with lines, \
      "running_Olden_bytecode.txt" u 1:2 t "bh" with lines, \
      "running_Olden_bytecode.txt" u 1:3 t "bisort" with lines, \
@@ -216,6 +244,8 @@ plot "running_Olden_bytecode.txt" u 1:2 t '' with lines, \
    with lines
 
 set size 1.5,1.5
+set xtics norotate
+set xlabel 0,0
 set output "running_Olden_bytecode_large.png"
 plot "running_Olden_bytecode.txt" u 1:2 t '' with lines, \
      "running_Olden_bytecode.txt" u 1:2 t "bh" with lines, \