-
Notifications
You must be signed in to change notification settings - Fork 2
/
gnuplot_in
126 lines (114 loc) · 6.37 KB
/
gnuplot_in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
set term postscript eps color enh lw 2
#set terminal postscript eps size 3.5,2.62 enhanced color \
# font 'Helvetica,20' linewidth 2
#set style line 80 lw 1
#set terminal pdfcairo font "Gill Sans,9" linewidth 4 rounded fontscale 1.0
#set style line 1 lw 8
#set style line 2 lw 8
#set style line 3 lw 8
#set style line 4 lw 8
#set style line 5 lw 8
#set style line 6 lw 8
#set style line 7 lw 8
set arrow from 20,graph(0,0) to 20,graph(1.01,1.01) nohead
set label "pool size" at 18,graph(1.02,1.02)
#set title "Good Results"
#set xlabel "Number of Caller Processes"
#set ylabel "Number of Good Response"
set key bottom right
set yrange [0:40000]
set output "eps/good.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"good" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"good" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"good" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"good" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"good" with lp title "gproc"
#set title "Bad Results"
#set xlabel "Number of Caller Processes"
#set ylabel "Number of Bad Response"
set output "eps/bad.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"bad" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"bad" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"bad" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"bad" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"bad" with lp title "gproc"
#set title "Context Switches"
#set xlabel "Number of Caller Processes"
#set ylabel "Number of Context Switches"
set autoscale y
set output "eps/context-switches.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"context" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"context" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"context" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"context" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"context" with lp title "gproc"
#set title "Reductions"
#set xlabel "Number of Caller Processes"
#set ylabel "Number of Reductions"
set output "eps/reductions.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"reductions" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"reductions" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"reductions" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"reductions" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"reductions" with lp title "gproc"
set output "eps/reductions-minus-overhead.eps"
plot "< paste data/pt_poolboy_sup.dat data/pt_overhead.dat" \
using 2:($5-$17) with lines title "poolboy", \
"< paste data/pt_pooler_sup.dat data/pt_overhead.dat" \
using 2:($5-$17) with lines title "pooler", \
"< paste data/pt_gsp_sup.dat data/pt_overhead.dat" \
using 2:($5-$17) with lines title 'gen\_server\_pool', \
"< paste data/pt_dispcount_sup.dat data/pt_overhead.dat" \
using 2:($5-$17) with lines title 'dispcount', \
"< paste data/pt_gproc_sup.dat data/pt_overhead.dat" \
using 2:($5-$17) with lines title 'gproc'
#set title "Message Queue"
#set xlabel "Number of Caller Processes"
#set ylabel "Number in Message Queues"
set key top left
set output "eps/message_queues.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"message_queues" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"message_queues" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"message_queues" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"message_queues" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"message_queues" with lp title "gproc"
set output "eps/message-queues-minus-overhead.eps"
plot "< paste data/pt_poolboy_sup.dat data/pt_overhead.dat" \
using 2:($9-$21) with lines title "poolboy", \
"< paste data/pt_pooler_sup.dat data/pt_overhead.dat" \
using 2:($9-$21) with lines title "pooler", \
"< paste data/pt_gsp_sup.dat data/pt_overhead.dat" \
using 2:($9-$21) with lines title 'gen\_server\_pool', \
"< paste data/pt_dispcount_sup.dat data/pt_overhead.dat" \
using 2:($9-$21) with lines title 'dispcount', \
"< paste data/pt_gproc_sup.dat data/pt_overhead.dat" \
using 2:($9-$21) with lines title 'gproc'
#set title "Average Timings"
#set xlabel "Number of Caller Processes"
#set ylabel "Microsecond Timings"
set key top right
set yrange [0:12000]
set output "eps/avg_time.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"avg_time" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"avg_time" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"avg_time" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"avg_time" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"avg_time" with lp title "gproc"
#set title "Min Timings"
#set xlabel "Number of Caller Processes"
#set ylabel "Microsecond Timings"
set output "eps/min_time.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"min_time" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"min_time" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"min_time" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"min_time" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"min_time" with lp title "gproc"
#set title "Max Timings"
#set xlabel "Number of Caller Processes"
#set ylabel "Microsecond Timings"
set output "eps/max_time.eps"
plot 'data/pt_poolboy_sup.dat' using "num_callers":"max_time" with lp title "poolboy", \
'data/pt_pooler_sup.dat' using "num_callers":"max_time" with lp title "pooler", \
'data/pt_gsp_sup.dat' using "num_callers":"max_time" with lp title 'gen\_server\_pool', \
'data/pt_dispcount_sup.dat' using "num_callers":"max_time" with lp title "dispcount", \
'data/pt_gproc_sup.dat' using "num_callers":"max_time" with lp title "gproc"