bigbench 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.DS_Store +0 -0
- data/README.textile +254 -4
- data/Rakefile +43 -9
- data/doc/Array.html +288 -0
- data/doc/BigBench.html +32 -6
- data/doc/BigBench/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Looper.html +24 -0
- data/doc/BigBench/Bot.html +24 -0
- data/doc/BigBench/Configuration.html +24 -0
- data/doc/BigBench/Configuration/Config.html +24 -0
- data/doc/BigBench/Configuration/InvalidOptions.html +24 -0
- data/doc/BigBench/Executor.html +33 -3
- data/doc/BigBench/Executor/InvalidCommand.html +25 -1
- data/doc/BigBench/Fragment.html +24 -0
- data/doc/BigBench/Fragment/Fragment.html +24 -0
- data/doc/BigBench/Output.html +24 -0
- data/doc/BigBench/PostProcessor.html +33 -6
- data/doc/BigBench/PostProcessor/Environment.html +489 -2
- data/doc/BigBench/PostProcessor/Environment/Appearings.html +327 -0
- data/doc/BigBench/PostProcessor/Environment/AttributeCluster.html +275 -0
- data/doc/BigBench/PostProcessor/Environment/BenchmarkNotFound.html +293 -0
- data/doc/BigBench/PostProcessor/Environment/Cluster.html +387 -0
- data/doc/BigBench/PostProcessor/Environment/NormalDistribution.html +383 -0
- data/doc/BigBench/PostProcessor/Environment/PolynomialRegression.html +438 -0
- data/doc/BigBench/PostProcessor/Environment/Statistics.html +568 -0
- data/doc/BigBench/PostProcessor/Graphs.html +270 -0
- data/doc/BigBench/PostProcessor/Graphs/LineGraph.html +403 -0
- data/doc/BigBench/PostProcessor/Graphs/PieGraph.html +396 -0
- data/doc/BigBench/PostProcessor/InvalidProcessor.html +25 -1
- data/doc/BigBench/PostProcessor/Processor.html +59 -7
- data/doc/BigBench/PostProcessor/Statistics.html +26 -2
- data/doc/BigBench/PostProcessor/Test.html +26 -2
- data/doc/BigBench/Runner.html +24 -0
- data/doc/BigBench/Runner/NoBenchmarksDefined.html +24 -0
- data/doc/BigBench/Store.html +24 -0
- data/doc/BigBench/Tracker.html +24 -0
- data/doc/BigBench/Tracker/Tracker.html +24 -0
- data/doc/EventMachineLoop.html +24 -0
- data/doc/Float.html +24 -0
- data/doc/Gemfile.html +24 -0
- data/doc/Helpers.html +78 -0
- data/doc/Object.html +29 -0
- data/doc/README_rdoc.html +803 -0
- data/doc/Rakefile.html +66 -10
- data/doc/created.rid +46 -40
- data/doc/index.html +667 -1
- data/doc/js/search_index.js +1 -1
- data/doc/lib/bigbench/help/executor_txt.html +32 -2
- data/doc/rdoc.css +4 -0
- data/doc/table_of_contents.html +179 -23
- data/doc/test_rdoc.html +159 -0
- data/lib/bigbench.rb +2 -0
- data/lib/bigbench/executor.rb +17 -1
- data/lib/bigbench/help/executor.txt +5 -0
- data/lib/bigbench/post_processor.rb +16 -32
- data/lib/bigbench/post_processor/environment.rb +525 -0
- data/lib/bigbench/post_processor/graphs.rb +209 -0
- data/lib/bigbench/post_processor/statistics.rb +29 -49
- data/lib/bigbench/version.rb +1 -1
- data/spec/executor_spec.rb +35 -0
- data/spec/helpers.rb +15 -1
- data/spec/post_processor_spec.rb +19 -4
- data/spec/post_processors/environment_spec.rb +412 -0
- data/spec/post_processors/graphs_spec.rb +23 -0
- data/spec/post_processors/statistics_spec.rb +3 -2
- data/spec/tests/local.rb +1 -1
- data/spec/tests/sample_results_big.ljson +51925 -0
- data/spec/tests/sample_results_small.ljson +3875 -0
- data/spec/tests/with_post_processor.ljson +43 -0
- data/spec/tests/with_post_processor.rb +12 -0
- data/spec/tmp/.DS_Store +0 -0
- data/spec/tracker_spec.rb +8 -8
- metadata +61 -101
@@ -0,0 +1,293 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class BigBench::PostProcessor::Environment::BenchmarkNotFound - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../../index.html">Home</a>
|
28
|
+
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/bigbench/post_processor/environment.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">StandardError
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-message">#message</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
<nav id="fileindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Pages</h3>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
|
88
|
+
<li class="file"><a href="../../../Gemfile.html">Gemfile</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="../../../README_rdoc.html">README</a>
|
91
|
+
|
92
|
+
<li class="file"><a href="../../../Rakefile.html">Rakefile</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="../../../lib/bigbench/help/executor_txt.html">executor</a>
|
95
|
+
|
96
|
+
</ul>
|
97
|
+
</nav>
|
98
|
+
|
99
|
+
<nav id="classindex-section" class="section project-section">
|
100
|
+
<h3 class="section-header">Class and Module Index</h3>
|
101
|
+
|
102
|
+
<ul class="link-list">
|
103
|
+
|
104
|
+
<li><a href="../../../BigBench.html">BigBench</a>
|
105
|
+
|
106
|
+
<li><a href="../../../BigBench/Benchmark.html">BigBench::Benchmark</a>
|
107
|
+
|
108
|
+
<li><a href="../../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
|
109
|
+
|
110
|
+
<li><a href="../../../BigBench/Benchmark/Looper.html">BigBench::Benchmark::Looper</a>
|
111
|
+
|
112
|
+
<li><a href="../../../BigBench/Bot.html">BigBench::Bot</a>
|
113
|
+
|
114
|
+
<li><a href="../../../BigBench/Configuration.html">BigBench::Configuration</a>
|
115
|
+
|
116
|
+
<li><a href="../../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
|
117
|
+
|
118
|
+
<li><a href="../../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
|
119
|
+
|
120
|
+
<li><a href="../../../BigBench/Executor.html">BigBench::Executor</a>
|
121
|
+
|
122
|
+
<li><a href="../../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
|
123
|
+
|
124
|
+
<li><a href="../../../BigBench/Fragment.html">BigBench::Fragment</a>
|
125
|
+
|
126
|
+
<li><a href="../../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
|
127
|
+
|
128
|
+
<li><a href="../../../BigBench/Output.html">BigBench::Output</a>
|
129
|
+
|
130
|
+
<li><a href="../../../BigBench/PostProcessor.html">BigBench::PostProcessor</a>
|
131
|
+
|
132
|
+
<li><a href="../../../BigBench/PostProcessor/Environment.html">BigBench::PostProcessor::Environment</a>
|
133
|
+
|
134
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Appearings.html">BigBench::PostProcessor::Environment::Appearings</a>
|
135
|
+
|
136
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/AttributeCluster.html">BigBench::PostProcessor::Environment::AttributeCluster</a>
|
137
|
+
|
138
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/BenchmarkNotFound.html">BigBench::PostProcessor::Environment::BenchmarkNotFound</a>
|
139
|
+
|
140
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Cluster.html">BigBench::PostProcessor::Environment::Cluster</a>
|
141
|
+
|
142
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/NormalDistribution.html">BigBench::PostProcessor::Environment::NormalDistribution</a>
|
143
|
+
|
144
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/PolynomialRegression.html">BigBench::PostProcessor::Environment::PolynomialRegression</a>
|
145
|
+
|
146
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Statistics.html">BigBench::PostProcessor::Environment::Statistics</a>
|
147
|
+
|
148
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs.html">BigBench::PostProcessor::Graphs</a>
|
149
|
+
|
150
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/LineGraph.html">BigBench::PostProcessor::Graphs::LineGraph</a>
|
151
|
+
|
152
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/PieGraph.html">BigBench::PostProcessor::Graphs::PieGraph</a>
|
153
|
+
|
154
|
+
<li><a href="../../../BigBench/PostProcessor/InvalidProcessor.html">BigBench::PostProcessor::InvalidProcessor</a>
|
155
|
+
|
156
|
+
<li><a href="../../../BigBench/PostProcessor/Processor.html">BigBench::PostProcessor::Processor</a>
|
157
|
+
|
158
|
+
<li><a href="../../../BigBench/PostProcessor/Statistics.html">BigBench::PostProcessor::Statistics</a>
|
159
|
+
|
160
|
+
<li><a href="../../../BigBench/PostProcessor/Test.html">BigBench::PostProcessor::Test</a>
|
161
|
+
|
162
|
+
<li><a href="../../../BigBench/Runner.html">BigBench::Runner</a>
|
163
|
+
|
164
|
+
<li><a href="../../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
|
165
|
+
|
166
|
+
<li><a href="../../../BigBench/Store.html">BigBench::Store</a>
|
167
|
+
|
168
|
+
<li><a href="../../../BigBench/Tracker.html">BigBench::Tracker</a>
|
169
|
+
|
170
|
+
<li><a href="../../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
|
171
|
+
|
172
|
+
<li><a href="../../../Array.html">Array</a>
|
173
|
+
|
174
|
+
<li><a href="../../../EventMachineLoop.html">EventMachineLoop</a>
|
175
|
+
|
176
|
+
<li><a href="../../../Float.html">Float</a>
|
177
|
+
|
178
|
+
<li><a href="../../../Helpers.html">Helpers</a>
|
179
|
+
|
180
|
+
<li><a href="../../../Object.html">Object</a>
|
181
|
+
|
182
|
+
</ul>
|
183
|
+
</nav>
|
184
|
+
|
185
|
+
</div>
|
186
|
+
</nav>
|
187
|
+
|
188
|
+
<div id="documentation">
|
189
|
+
<h1 class="class">class BigBench::PostProcessor::Environment::BenchmarkNotFound</h1>
|
190
|
+
|
191
|
+
<div id="description" class="description">
|
192
|
+
|
193
|
+
<p>Is raised when a benchmark scope block doesn’t find the desired benchmark</p>
|
194
|
+
|
195
|
+
</div><!-- description -->
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
<!-- Methods -->
|
210
|
+
|
211
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
212
|
+
<h3 class="section-header">Public Class Methods</h3>
|
213
|
+
|
214
|
+
|
215
|
+
<div id="method-c-new" class="method-detail ">
|
216
|
+
|
217
|
+
<div class="method-heading">
|
218
|
+
<span class="method-name">new</span><span
|
219
|
+
class="method-args">(unexistant_benchmark)</span>
|
220
|
+
<span class="method-click-advice">click to toggle source</span>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<div class="method-source-code" id="new-source">
|
231
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 31</span>
|
232
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">unexistant_benchmark</span>)
|
233
|
+
<span class="ruby-ivar">@unexistant_benchmark</span> = <span class="ruby-identifier">unexistant_benchmark</span>
|
234
|
+
<span class="ruby-keyword">end</span></pre>
|
235
|
+
</div><!-- new-source -->
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
</div><!-- new-method -->
|
243
|
+
|
244
|
+
|
245
|
+
</section><!-- public-class-method-details -->
|
246
|
+
|
247
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
248
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
249
|
+
|
250
|
+
|
251
|
+
<div id="method-i-message" class="method-detail ">
|
252
|
+
|
253
|
+
<div class="method-heading">
|
254
|
+
<span class="method-name">message</span><span
|
255
|
+
class="method-args">()</span>
|
256
|
+
<span class="method-click-advice">click to toggle source</span>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
|
260
|
+
<div class="method-description">
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
<div class="method-source-code" id="message-source">
|
267
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 35</span>
|
268
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">message</span>
|
269
|
+
<span class="ruby-node">"Could not find Benchmark: '#{@unexistant_benchmark}'. Available benchmarks are: #{BigBench.benchmarks.map{ |b| b.name }.join(', ')}"</span>
|
270
|
+
<span class="ruby-keyword">end</span></pre>
|
271
|
+
</div><!-- message-source -->
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
</div><!-- message-method -->
|
279
|
+
|
280
|
+
|
281
|
+
</section><!-- public-instance-method-details -->
|
282
|
+
|
283
|
+
</section><!-- 5Buntitled-5D -->
|
284
|
+
|
285
|
+
</div><!-- documentation -->
|
286
|
+
|
287
|
+
|
288
|
+
<footer id="validator-badges">
|
289
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
290
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
291
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
292
|
+
</footer>
|
293
|
+
|
@@ -0,0 +1,387 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class BigBench::PostProcessor::Environment::Cluster - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../../index.html">Home</a>
|
28
|
+
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/bigbench/post_processor/environment.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../../../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
<!-- Included Modules -->
|
67
|
+
<nav id="includes-section" class="section">
|
68
|
+
<h3 class="section-header">Included Modules</h3>
|
69
|
+
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
|
73
|
+
<li><a class="include" href="../Environment.html">BigBench::PostProcessor::Environment</a>
|
74
|
+
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</nav>
|
78
|
+
|
79
|
+
<!-- Method Quickref -->
|
80
|
+
<nav id="method-list-section" class="section">
|
81
|
+
<h3 class="section-header">Methods</h3>
|
82
|
+
|
83
|
+
<ul class="link-list">
|
84
|
+
|
85
|
+
<li><a href="#method-c-attr_multi_dimension_reader">::attr_multi_dimension_reader</a>
|
86
|
+
|
87
|
+
<li><a href="#method-c-new">::new</a>
|
88
|
+
|
89
|
+
</ul>
|
90
|
+
</nav>
|
91
|
+
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div id="project-metadata">
|
95
|
+
<nav id="fileindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Pages</h3>
|
97
|
+
|
98
|
+
<ul>
|
99
|
+
|
100
|
+
<li class="file"><a href="../../../Gemfile.html">Gemfile</a>
|
101
|
+
|
102
|
+
<li class="file"><a href="../../../README_rdoc.html">README</a>
|
103
|
+
|
104
|
+
<li class="file"><a href="../../../Rakefile.html">Rakefile</a>
|
105
|
+
|
106
|
+
<li class="file"><a href="../../../lib/bigbench/help/executor_txt.html">executor</a>
|
107
|
+
|
108
|
+
</ul>
|
109
|
+
</nav>
|
110
|
+
|
111
|
+
<nav id="classindex-section" class="section project-section">
|
112
|
+
<h3 class="section-header">Class and Module Index</h3>
|
113
|
+
|
114
|
+
<ul class="link-list">
|
115
|
+
|
116
|
+
<li><a href="../../../BigBench.html">BigBench</a>
|
117
|
+
|
118
|
+
<li><a href="../../../BigBench/Benchmark.html">BigBench::Benchmark</a>
|
119
|
+
|
120
|
+
<li><a href="../../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
|
121
|
+
|
122
|
+
<li><a href="../../../BigBench/Benchmark/Looper.html">BigBench::Benchmark::Looper</a>
|
123
|
+
|
124
|
+
<li><a href="../../../BigBench/Bot.html">BigBench::Bot</a>
|
125
|
+
|
126
|
+
<li><a href="../../../BigBench/Configuration.html">BigBench::Configuration</a>
|
127
|
+
|
128
|
+
<li><a href="../../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
|
129
|
+
|
130
|
+
<li><a href="../../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
|
131
|
+
|
132
|
+
<li><a href="../../../BigBench/Executor.html">BigBench::Executor</a>
|
133
|
+
|
134
|
+
<li><a href="../../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
|
135
|
+
|
136
|
+
<li><a href="../../../BigBench/Fragment.html">BigBench::Fragment</a>
|
137
|
+
|
138
|
+
<li><a href="../../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
|
139
|
+
|
140
|
+
<li><a href="../../../BigBench/Output.html">BigBench::Output</a>
|
141
|
+
|
142
|
+
<li><a href="../../../BigBench/PostProcessor.html">BigBench::PostProcessor</a>
|
143
|
+
|
144
|
+
<li><a href="../../../BigBench/PostProcessor/Environment.html">BigBench::PostProcessor::Environment</a>
|
145
|
+
|
146
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Appearings.html">BigBench::PostProcessor::Environment::Appearings</a>
|
147
|
+
|
148
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/AttributeCluster.html">BigBench::PostProcessor::Environment::AttributeCluster</a>
|
149
|
+
|
150
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/BenchmarkNotFound.html">BigBench::PostProcessor::Environment::BenchmarkNotFound</a>
|
151
|
+
|
152
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Cluster.html">BigBench::PostProcessor::Environment::Cluster</a>
|
153
|
+
|
154
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/NormalDistribution.html">BigBench::PostProcessor::Environment::NormalDistribution</a>
|
155
|
+
|
156
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/PolynomialRegression.html">BigBench::PostProcessor::Environment::PolynomialRegression</a>
|
157
|
+
|
158
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Statistics.html">BigBench::PostProcessor::Environment::Statistics</a>
|
159
|
+
|
160
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs.html">BigBench::PostProcessor::Graphs</a>
|
161
|
+
|
162
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/LineGraph.html">BigBench::PostProcessor::Graphs::LineGraph</a>
|
163
|
+
|
164
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/PieGraph.html">BigBench::PostProcessor::Graphs::PieGraph</a>
|
165
|
+
|
166
|
+
<li><a href="../../../BigBench/PostProcessor/InvalidProcessor.html">BigBench::PostProcessor::InvalidProcessor</a>
|
167
|
+
|
168
|
+
<li><a href="../../../BigBench/PostProcessor/Processor.html">BigBench::PostProcessor::Processor</a>
|
169
|
+
|
170
|
+
<li><a href="../../../BigBench/PostProcessor/Statistics.html">BigBench::PostProcessor::Statistics</a>
|
171
|
+
|
172
|
+
<li><a href="../../../BigBench/PostProcessor/Test.html">BigBench::PostProcessor::Test</a>
|
173
|
+
|
174
|
+
<li><a href="../../../BigBench/Runner.html">BigBench::Runner</a>
|
175
|
+
|
176
|
+
<li><a href="../../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
|
177
|
+
|
178
|
+
<li><a href="../../../BigBench/Store.html">BigBench::Store</a>
|
179
|
+
|
180
|
+
<li><a href="../../../BigBench/Tracker.html">BigBench::Tracker</a>
|
181
|
+
|
182
|
+
<li><a href="../../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
|
183
|
+
|
184
|
+
<li><a href="../../../Array.html">Array</a>
|
185
|
+
|
186
|
+
<li><a href="../../../EventMachineLoop.html">EventMachineLoop</a>
|
187
|
+
|
188
|
+
<li><a href="../../../Float.html">Float</a>
|
189
|
+
|
190
|
+
<li><a href="../../../Helpers.html">Helpers</a>
|
191
|
+
|
192
|
+
<li><a href="../../../Object.html">Object</a>
|
193
|
+
|
194
|
+
</ul>
|
195
|
+
</nav>
|
196
|
+
|
197
|
+
</div>
|
198
|
+
</nav>
|
199
|
+
|
200
|
+
<div id="documentation">
|
201
|
+
<h1 class="class">class BigBench::PostProcessor::Environment::Cluster</h1>
|
202
|
+
|
203
|
+
<div id="description" class="description">
|
204
|
+
|
205
|
+
<p>Clusters the trackings in the specified timebase. By default everything is
|
206
|
+
clustered by seconds.</p>
|
207
|
+
|
208
|
+
</div><!-- description -->
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<!-- Attributes -->
|
222
|
+
<section id="attribute-method-details" class="method-section section">
|
223
|
+
<h3 class="section-header">Attributes</h3>
|
224
|
+
|
225
|
+
|
226
|
+
<div id="attribute-i-durations" class="method-detail">
|
227
|
+
<div class="method-heading attribute-method-heading">
|
228
|
+
<span class="method-name">durations</span><span
|
229
|
+
class="attribute-access-type">[R]</span>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div class="method-description">
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
</div>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div id="attribute-i-requests" class="method-detail">
|
240
|
+
<div class="method-heading attribute-method-heading">
|
241
|
+
<span class="method-name">requests</span><span
|
242
|
+
class="attribute-access-type">[R]</span>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<div class="method-description">
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
</div>
|
250
|
+
</div>
|
251
|
+
|
252
|
+
<div id="attribute-i-timesteps" class="method-detail">
|
253
|
+
<div class="method-heading attribute-method-heading">
|
254
|
+
<span class="method-name">timesteps</span><span
|
255
|
+
class="attribute-access-type">[R]</span>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div class="method-description">
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</section><!-- attribute-method-details -->
|
266
|
+
|
267
|
+
|
268
|
+
<!-- Methods -->
|
269
|
+
|
270
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
271
|
+
<h3 class="section-header">Public Class Methods</h3>
|
272
|
+
|
273
|
+
|
274
|
+
<div id="method-c-attr_multi_dimension_reader" class="method-detail ">
|
275
|
+
|
276
|
+
<div class="method-heading">
|
277
|
+
<span class="method-name">attr_multi_dimension_reader</span><span
|
278
|
+
class="method-args">(attribute)</span>
|
279
|
+
<span class="method-click-advice">click to toggle source</span>
|
280
|
+
</div>
|
281
|
+
|
282
|
+
|
283
|
+
<div class="method-description">
|
284
|
+
|
285
|
+
<p>Allows the registering of multi dimensioned attributes and 0s out values
|
286
|
+
that aren’t present</p>
|
287
|
+
|
288
|
+
<pre>attr_multi_dimension_reader :methods</pre>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
<div class="method-source-code" id="attr_multi_dimension_reader-source">
|
293
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 327</span>
|
294
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">attr_multi_dimension_reader</span>(<span class="ruby-identifier">attribute</span>)
|
295
|
+
<span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">attribute</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">appearance</span><span class="ruby-operator">|</span>
|
296
|
+
<span class="ruby-identifier">variable</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{attribute}"</span>.<span class="ruby-identifier">to_sym</span>)
|
297
|
+
<span class="ruby-identifier">variable</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">appearance</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">variable</span>[<span class="ruby-identifier">appearance</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">timesteps</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">fill</span>(<span class="ruby-value">0</span>)
|
298
|
+
<span class="ruby-keyword">end</span>
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div><!-- attr_multi_dimension_reader-source -->
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div><!-- attr_multi_dimension_reader-method -->
|
308
|
+
|
309
|
+
|
310
|
+
<div id="method-c-new" class="method-detail ">
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<span class="method-name">new</span><span
|
314
|
+
class="method-args">(timebase = 1.second, scope = :all)</span>
|
315
|
+
<span class="method-click-advice">click to toggle source</span>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
|
319
|
+
<div class="method-description">
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
<div class="method-source-code" id="new-source">
|
326
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 341</span>
|
327
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">timebase</span> = <span class="ruby-value">1</span>.<span class="ruby-identifier">second</span>, <span class="ruby-identifier">scope</span> = <span class="ruby-value">:all</span>)
|
328
|
+
<span class="ruby-ivar">@timesteps</span>, <span class="ruby-ivar">@durations</span>, <span class="ruby-ivar">@durations_array</span>, <span class="ruby-ivar">@requests</span>, <span class="ruby-ivar">@methods</span>, <span class="ruby-ivar">@statuses</span>, <span class="ruby-ivar">@paths</span>, <span class="ruby-ivar">@scope</span> = [], [], [], [], {}, {}, {}, <span class="ruby-identifier">scope</span>
|
329
|
+
|
330
|
+
<span class="ruby-comment"># Single dimension attributes</span>
|
331
|
+
<span class="ruby-identifier">steps</span> = <span class="ruby-constant">BigBench</span>.<span class="ruby-identifier">config</span>.<span class="ruby-identifier">duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">timebase</span>
|
332
|
+
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">steps</span>).<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">timestep</span><span class="ruby-operator">|</span>
|
333
|
+
<span class="ruby-ivar">@timesteps</span>[<span class="ruby-identifier">timestep</span>] = <span class="ruby-identifier">timestep</span>
|
334
|
+
<span class="ruby-ivar">@durations_array</span>[<span class="ruby-identifier">timestep</span>] = []
|
335
|
+
<span class="ruby-ivar">@requests</span>[<span class="ruby-identifier">timestep</span>] = <span class="ruby-value">0</span>
|
336
|
+
<span class="ruby-keyword">end</span>
|
337
|
+
|
338
|
+
<span class="ruby-comment"># Multi dimension attributes</span>
|
339
|
+
[<span class="ruby-value">:methods</span>, <span class="ruby-value">:statuses</span>, <span class="ruby-value">:paths</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attribute</span><span class="ruby-operator">|</span>
|
340
|
+
<span class="ruby-identifier">appearing</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">attribute</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">appearance</span><span class="ruby-operator">|</span>
|
341
|
+
<span class="ruby-identifier">variable</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{attribute}"</span>.<span class="ruby-identifier">to_sym</span>)
|
342
|
+
<span class="ruby-identifier">variable</span>[<span class="ruby-identifier">appearance</span>.<span class="ruby-identifier">to_s</span>] = []
|
343
|
+
<span class="ruby-ivar">@timesteps</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">timestep</span><span class="ruby-operator">|</span> <span class="ruby-identifier">variable</span>[<span class="ruby-identifier">appearance</span>.<span class="ruby-identifier">to_s</span>][<span class="ruby-identifier">timestep</span>] = <span class="ruby-value">0</span> }
|
344
|
+
<span class="ruby-keyword">end</span>
|
345
|
+
<span class="ruby-keyword">end</span>
|
346
|
+
|
347
|
+
<span class="ruby-comment"># Cluster trackings</span>
|
348
|
+
<span class="ruby-identifier">trackings</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tracking</span><span class="ruby-operator">|</span>
|
349
|
+
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span>(<span class="ruby-identifier">tracking</span>[<span class="ruby-value">:benchmark</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">scope</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">scope</span> <span class="ruby-operator">==</span> <span class="ruby-value">:all</span>)
|
350
|
+
|
351
|
+
<span class="ruby-identifier">timestep</span> = <span class="ruby-identifier">tracking</span>[<span class="ruby-value">:elapsed</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">timebase</span>
|
352
|
+
|
353
|
+
<span class="ruby-ivar">@durations_array</span>[<span class="ruby-identifier">timestep</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">tracking</span>[<span class="ruby-value">:duration</span>]
|
354
|
+
<span class="ruby-ivar">@requests</span>[<span class="ruby-identifier">timestep</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
355
|
+
<span class="ruby-ivar">@methods</span>[<span class="ruby-identifier">tracking</span>[<span class="ruby-value">:method</span>].<span class="ruby-identifier">to_s</span>][<span class="ruby-identifier">timestep</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
356
|
+
<span class="ruby-ivar">@statuses</span>[<span class="ruby-identifier">tracking</span>[<span class="ruby-value">:status</span>].<span class="ruby-identifier">to_s</span>][<span class="ruby-identifier">timestep</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
357
|
+
<span class="ruby-ivar">@paths</span>[<span class="ruby-identifier">tracking</span>[<span class="ruby-value">:path</span>].<span class="ruby-identifier">to_s</span>][<span class="ruby-identifier">timestep</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
358
|
+
<span class="ruby-keyword">end</span>
|
359
|
+
|
360
|
+
<span class="ruby-comment"># Compute mean of durations</span>
|
361
|
+
<span class="ruby-ivar">@timesteps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">timestep</span><span class="ruby-operator">|</span>
|
362
|
+
<span class="ruby-ivar">@durations</span>[<span class="ruby-identifier">timestep</span>] = <span class="ruby-ivar">@durations_array</span>[<span class="ruby-identifier">timestep</span>].<span class="ruby-identifier">average</span>
|
363
|
+
<span class="ruby-keyword">end</span>
|
364
|
+
<span class="ruby-keyword">end</span></pre>
|
365
|
+
</div><!-- new-source -->
|
366
|
+
|
367
|
+
</div>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
</div><!-- new-method -->
|
373
|
+
|
374
|
+
|
375
|
+
</section><!-- public-class-method-details -->
|
376
|
+
|
377
|
+
</section><!-- 5Buntitled-5D -->
|
378
|
+
|
379
|
+
</div><!-- documentation -->
|
380
|
+
|
381
|
+
|
382
|
+
<footer id="validator-badges">
|
383
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
384
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
385
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
386
|
+
</footer>
|
387
|
+
|