Class: RExperimentAnalysis

Inherits:
Object
  • Object
show all
Defined in:
lib/flukso/plots.rb

Overview

The following classes provide some ideas. Not used.

Instance Method Summary collapse

Constructor Details

#initialize(path, datafile, loadlevel) ⇒ RExperimentAnalysis

Returns a new instance of RExperimentAnalysis.



147
148
149
150
151
152
153
# File 'lib/flukso/plots.rb', line 147

def initialize(path, datafile, loadlevel)
  @workingdir=path
  @datafile = File.expand_path(File.join(path, datafile))
  @loadlevel = loadlevel
  puts "Using data from file #{@datafile}" if $verbose
  @runner = RRunner.new(path)
end

Instance Method Details

#plotSingleRunObject



251
252
253
254
255
256
# File 'lib/flukso/plots.rb', line 251

def plotSingleRun
  methods.grep(/^plotSingleRun_/){|m|
    self.send(m)
  }
  sleep(1)
end

#plotSingleRun_perfPrefHistogramObject



239
240
241
242
243
244
245
246
247
248
249
# File 'lib/flukso/plots.rb', line 239

def plotSingleRun_perfPrefHistogram
  drawcmd="    hist(data$perfpref,\n      main=\"Histogram of user preferences\",\n      xlab=\"Performance Preference\",\n      ylab=\"Frequency\"\n    )\n  END_OF_CMD\n  outfile=\"histperfpref-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_PerfPrefVsQueueTimeObject



191
192
193
194
195
196
197
198
199
200
201
# File 'lib/flukso/plots.rb', line 191

def plotSingleRun_PerfPrefVsQueueTime()
  drawcmd="    plot(data$perfpref, data$qtime,\n      main=\"Performance preference vs. queuetime\",\n      xlab=\"Performance Preference\",\n      ylab=\"absolute queuetime [s]\"\n    )\n  END_OF_CMD\n  outfile=\"perfprefvsqtime-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_PriceObject



167
168
169
170
171
172
173
174
175
176
177
# File 'lib/flukso/plots.rb', line 167

def plotSingleRun_Price
  drawcmd="    plot(data$price,\n      main=\"Price for all jobs\",\n      xlab=\"Job ID\",\n      ylab=\"price\"\n    )\n  END_OF_CMD\n  outfile=\"price-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_PriceHistogramObject



215
216
217
218
219
220
221
222
223
224
225
# File 'lib/flukso/plots.rb', line 215

def plotSingleRun_PriceHistogram
  drawcmd="    hist(data$pricert,\n      main=\"Histogram of prices per second\",\n      xlab=\"Price per second\",\n      ylab=\"Frequency\"\n    )\n  END_OF_CMD\n  outfile=\"histpricepersecond-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_PricePerSecondObject



203
204
205
206
207
208
209
210
211
212
213
# File 'lib/flukso/plots.rb', line 203

def plotSingleRun_PricePerSecond
  drawcmd="    plot(data$pricert,\n      main=\"Price per second for all jobs\",\n      xlab=\"Job ID\",\n      ylab=\"price/runtime [price/s]\"\n    )\n  END_OF_CMD\n  outfile=\"pricepersecond-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_PricePrefVsPriceObject



179
180
181
182
183
184
185
186
187
188
189
# File 'lib/flukso/plots.rb', line 179

def plotSingleRun_PricePrefVsPrice()
  drawcmd="    plot(data$pricepref, data$pricert,\n      main=\"Price preference vs. price per second\",\n      xlab=\"Price Preference\",\n      ylab=\"price/runtime [price/s]\"\n    )\n  END_OF_CMD\n  outfile=\"priceprefvspricert-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_QueuetimeHistogramObject



227
228
229
230
231
232
233
234
235
236
237
# File 'lib/flukso/plots.rb', line 227

def plotSingleRun_QueuetimeHistogram
  drawcmd="    hist(data$qtime,\n      main=\"Histogram of queuetimes\",\n      xlab=\"Queuetime [s]\",\n      ylab=\"Frequency\"\n    )\n  END_OF_CMD\n  outfile=\"histqueuetimes-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"

#plotSingleRun_QueuetimesObject



155
156
157
158
159
160
161
162
163
164
165
# File 'lib/flukso/plots.rb', line 155

def plotSingleRun_Queuetimes
  drawcmd="    plot(data$stime, data$qtime,\n      main=\"Queuetime for all jobs\",\n      xlab=\"submittime\",\n      ylab=\"queuetime\"\n    )\n  END_OF_CMD\n  outfile=\"queuetimes-\"[email protected]_s\n  @runner.execute(@datafile, outfile, drawcmd)\nend\n"