Class: RExperimentAnalysis
- Inherits:
-
Object
- Object
- RExperimentAnalysis
- Defined in:
- lib/flukso/plots.rb
Overview
The following classes provide some ideas. Not used.
Instance Method Summary collapse
-
#initialize(path, datafile, loadlevel) ⇒ RExperimentAnalysis
constructor
A new instance of RExperimentAnalysis.
- #plotSingleRun ⇒ Object
- #plotSingleRun_perfPrefHistogram ⇒ Object
- #plotSingleRun_PerfPrefVsQueueTime ⇒ Object
- #plotSingleRun_Price ⇒ Object
- #plotSingleRun_PriceHistogram ⇒ Object
- #plotSingleRun_PricePerSecond ⇒ Object
- #plotSingleRun_PricePrefVsPrice ⇒ Object
- #plotSingleRun_QueuetimeHistogram ⇒ Object
- #plotSingleRun_Queuetimes ⇒ Object
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.(File.join(path, datafile)) @loadlevel = loadlevel puts "Using data from file #{@datafile}" if $verbose @runner = RRunner.new(path) end |
Instance Method Details
#plotSingleRun ⇒ Object
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_perfPrefHistogram ⇒ Object
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_PerfPrefVsQueueTime ⇒ Object
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_Price ⇒ Object
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_PriceHistogram ⇒ Object
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_PricePerSecond ⇒ Object
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_PricePrefVsPrice ⇒ Object
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_QueuetimeHistogram ⇒ Object
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_Queuetimes ⇒ Object
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" |