bigbench 0.0.1

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.
Files changed (92) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/README.textile +81 -0
  4. data/Rakefile +10 -0
  5. data/bigbench.gemspec +29 -0
  6. data/bin/bigbench +6 -0
  7. data/doc/BigBench.html +631 -0
  8. data/doc/BigBench/Benchmark.html +328 -0
  9. data/doc/BigBench/Benchmark/Benchmark.html +431 -0
  10. data/doc/BigBench/Bot.html +233 -0
  11. data/doc/BigBench/Configuration.html +312 -0
  12. data/doc/BigBench/Configuration/Config.html +375 -0
  13. data/doc/BigBench/Configuration/InvalidOptions.html +217 -0
  14. data/doc/BigBench/Executor.html +252 -0
  15. data/doc/BigBench/Executor/InvalidCommand.html +222 -0
  16. data/doc/BigBench/Fragment.html +404 -0
  17. data/doc/BigBench/Fragment/Fragment.html +384 -0
  18. data/doc/BigBench/Output.html +703 -0
  19. data/doc/BigBench/Runner.html +222 -0
  20. data/doc/BigBench/Runner/NoBenchmarksDefined.html +217 -0
  21. data/doc/BigBench/Store.html +639 -0
  22. data/doc/BigBench/Tracker.html +179 -0
  23. data/doc/BigBench/Tracker/Tracker.html +273 -0
  24. data/doc/Float.html +217 -0
  25. data/doc/Gemfile.html +129 -0
  26. data/doc/Helpers.html +163 -0
  27. data/doc/Object.html +181 -0
  28. data/doc/Rakefile.html +136 -0
  29. data/doc/TestWebServer.html +247 -0
  30. data/doc/created.rid +31 -0
  31. data/doc/images/add.png +0 -0
  32. data/doc/images/brick.png +0 -0
  33. data/doc/images/brick_link.png +0 -0
  34. data/doc/images/bug.png +0 -0
  35. data/doc/images/bullet_black.png +0 -0
  36. data/doc/images/bullet_toggle_minus.png +0 -0
  37. data/doc/images/bullet_toggle_plus.png +0 -0
  38. data/doc/images/date.png +0 -0
  39. data/doc/images/delete.png +0 -0
  40. data/doc/images/find.png +0 -0
  41. data/doc/images/loadingAnimation.gif +0 -0
  42. data/doc/images/macFFBgHack.png +0 -0
  43. data/doc/images/package.png +0 -0
  44. data/doc/images/page_green.png +0 -0
  45. data/doc/images/page_white_text.png +0 -0
  46. data/doc/images/page_white_width.png +0 -0
  47. data/doc/images/plugin.png +0 -0
  48. data/doc/images/ruby.png +0 -0
  49. data/doc/images/tag_blue.png +0 -0
  50. data/doc/images/tag_green.png +0 -0
  51. data/doc/images/transparent.png +0 -0
  52. data/doc/images/wrench.png +0 -0
  53. data/doc/images/wrench_orange.png +0 -0
  54. data/doc/images/zoom.png +0 -0
  55. data/doc/index.html +122 -0
  56. data/doc/js/darkfish.js +153 -0
  57. data/doc/js/jquery.js +18 -0
  58. data/doc/js/navigation.js +142 -0
  59. data/doc/js/search.js +94 -0
  60. data/doc/js/search_index.js +1 -0
  61. data/doc/js/searcher.js +228 -0
  62. data/doc/lib/bigbench/help/executor_txt.html +145 -0
  63. data/doc/rdoc.css +543 -0
  64. data/doc/table_of_contents.html +263 -0
  65. data/lib/bigbench.rb +18 -0
  66. data/lib/bigbench/benchmark.rb +126 -0
  67. data/lib/bigbench/bot.rb +34 -0
  68. data/lib/bigbench/configuration.rb +109 -0
  69. data/lib/bigbench/executor.rb +131 -0
  70. data/lib/bigbench/float_extensions.rb +6 -0
  71. data/lib/bigbench/fragment.rb +119 -0
  72. data/lib/bigbench/help/executor.txt +17 -0
  73. data/lib/bigbench/initializers.rb +2 -0
  74. data/lib/bigbench/output.rb +116 -0
  75. data/lib/bigbench/runner.rb +52 -0
  76. data/lib/bigbench/store.rb +92 -0
  77. data/lib/bigbench/tracker.rb +79 -0
  78. data/lib/bigbench/version.rb +3 -0
  79. data/spec/benchmark_spec.rb +69 -0
  80. data/spec/bot_spec.rb +31 -0
  81. data/spec/configure_spec.rb +39 -0
  82. data/spec/executor_spec.rb +80 -0
  83. data/spec/fragment_spec.rb +110 -0
  84. data/spec/helpers.rb +19 -0
  85. data/spec/lib/test_web_server.rb +18 -0
  86. data/spec/runner_spec.rb +40 -0
  87. data/spec/store_spec.rb +72 -0
  88. data/spec/tests/local.rb +15 -0
  89. data/spec/tests/local_invalid.rb +9 -0
  90. data/spec/tracker_spec.rb +50 -0
  91. data/spec/webserver_spec.rb +35 -0
  92. metadata +220 -0
@@ -0,0 +1,179 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module BigBench::Tracker - 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="module">
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/tracker.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+
62
+ </div>
63
+
64
+ <div id="project-metadata">
65
+ <nav id="fileindex-section" class="section project-section">
66
+ <h3 class="section-header">Pages</h3>
67
+
68
+ <ul>
69
+
70
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
71
+
72
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
73
+
74
+ <li class="file"><a href="../lib/bigbench/help/executor_txt.html">executor</a>
75
+
76
+ </ul>
77
+ </nav>
78
+
79
+ <nav id="classindex-section" class="section project-section">
80
+ <h3 class="section-header">Class and Module Index</h3>
81
+
82
+ <ul class="link-list">
83
+
84
+ <li><a href="../BigBench.html">BigBench</a>
85
+
86
+ <li><a href="../BigBench/Benchmark.html">BigBench::Benchmark</a>
87
+
88
+ <li><a href="../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
89
+
90
+ <li><a href="../BigBench/Bot.html">BigBench::Bot</a>
91
+
92
+ <li><a href="../BigBench/Configuration.html">BigBench::Configuration</a>
93
+
94
+ <li><a href="../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
95
+
96
+ <li><a href="../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
97
+
98
+ <li><a href="../BigBench/Executor.html">BigBench::Executor</a>
99
+
100
+ <li><a href="../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
101
+
102
+ <li><a href="../BigBench/Fragment.html">BigBench::Fragment</a>
103
+
104
+ <li><a href="../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
105
+
106
+ <li><a href="../BigBench/Output.html">BigBench::Output</a>
107
+
108
+ <li><a href="../BigBench/Runner.html">BigBench::Runner</a>
109
+
110
+ <li><a href="../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
111
+
112
+ <li><a href="../BigBench/Store.html">BigBench::Store</a>
113
+
114
+ <li><a href="../BigBench/Tracker.html">BigBench::Tracker</a>
115
+
116
+ <li><a href="../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
117
+
118
+ <li><a href="../Float.html">Float</a>
119
+
120
+ <li><a href="../Helpers.html">Helpers</a>
121
+
122
+ <li><a href="../Object.html">Object</a>
123
+
124
+ <li><a href="../TestWebServer.html">TestWebServer</a>
125
+
126
+ </ul>
127
+ </nav>
128
+
129
+ </div>
130
+ </nav>
131
+
132
+ <div id="documentation">
133
+ <h1 class="module">module BigBench::Tracker</h1>
134
+
135
+ <div id="description" class="description">
136
+
137
+ <p>The tracker records all request results a benchmark makes. When the
138
+ benchmark is finished, the trackings are written depending on the mode of
139
+ BigBench:</p>
140
+ <dl class="rdoc-list label-list"><dt>config.mode == :bot
141
+ <dd>
142
+ <p>All trackings are appended to the redis store’s tracking key</p>
143
+ </dd><dt>config.mode == :local
144
+ <dd>
145
+ <p>All trackings are written straight to the file defined by
146
+ <code>config.output</code></p>
147
+ </dd><dt>config.mode == :bots
148
+ <dd>
149
+ <p>All trackings are imported from the redis store’s tracking key and written
150
+ to the file defined by <code>config.output</code></p>
151
+ </dd></dl>
152
+
153
+ </div><!-- description -->
154
+
155
+
156
+
157
+
158
+ <section id="5Buntitled-5D" class="documentation-section">
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <!-- Methods -->
168
+
169
+ </section><!-- 5Buntitled-5D -->
170
+
171
+ </div><!-- documentation -->
172
+
173
+
174
+ <footer id="validator-badges">
175
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
176
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
177
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
178
+ </footer>
179
+
@@ -0,0 +1,273 @@
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::Tracker::Tracker - 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/tracker.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
+
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-track">#track</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="../../Rakefile.html">Rakefile</a>
91
+
92
+ <li class="file"><a href="../../lib/bigbench/help/executor_txt.html">executor</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ <nav id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class and Module Index</h3>
99
+
100
+ <ul class="link-list">
101
+
102
+ <li><a href="../../BigBench.html">BigBench</a>
103
+
104
+ <li><a href="../../BigBench/Benchmark.html">BigBench::Benchmark</a>
105
+
106
+ <li><a href="../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
107
+
108
+ <li><a href="../../BigBench/Bot.html">BigBench::Bot</a>
109
+
110
+ <li><a href="../../BigBench/Configuration.html">BigBench::Configuration</a>
111
+
112
+ <li><a href="../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
113
+
114
+ <li><a href="../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
115
+
116
+ <li><a href="../../BigBench/Executor.html">BigBench::Executor</a>
117
+
118
+ <li><a href="../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
119
+
120
+ <li><a href="../../BigBench/Fragment.html">BigBench::Fragment</a>
121
+
122
+ <li><a href="../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
123
+
124
+ <li><a href="../../BigBench/Output.html">BigBench::Output</a>
125
+
126
+ <li><a href="../../BigBench/Runner.html">BigBench::Runner</a>
127
+
128
+ <li><a href="../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
129
+
130
+ <li><a href="../../BigBench/Store.html">BigBench::Store</a>
131
+
132
+ <li><a href="../../BigBench/Tracker.html">BigBench::Tracker</a>
133
+
134
+ <li><a href="../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
135
+
136
+ <li><a href="../../Float.html">Float</a>
137
+
138
+ <li><a href="../../Helpers.html">Helpers</a>
139
+
140
+ <li><a href="../../Object.html">Object</a>
141
+
142
+ <li><a href="../../TestWebServer.html">TestWebServer</a>
143
+
144
+ </ul>
145
+ </nav>
146
+
147
+ </div>
148
+ </nav>
149
+
150
+ <div id="documentation">
151
+ <h1 class="class">class BigBench::Tracker::Tracker</h1>
152
+
153
+ <div id="description" class="description">
154
+
155
+ </div><!-- description -->
156
+
157
+
158
+
159
+
160
+ <section id="5Buntitled-5D" class="documentation-section">
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <!-- Attributes -->
169
+ <section id="attribute-method-details" class="method-section section">
170
+ <h3 class="section-header">Attributes</h3>
171
+
172
+
173
+ <div id="attribute-i-trackings" class="method-detail">
174
+ <div class="method-heading attribute-method-heading">
175
+ <span class="method-name">trackings</span><span
176
+ class="attribute-access-type">[RW]</span>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+
182
+
183
+ </div>
184
+ </div>
185
+
186
+ </section><!-- attribute-method-details -->
187
+
188
+
189
+ <!-- Methods -->
190
+
191
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
192
+ <h3 class="section-header">Public Class Methods</h3>
193
+
194
+
195
+ <div id="method-c-new" class="method-detail ">
196
+
197
+ <div class="method-heading">
198
+ <span class="method-name">new</span><span
199
+ class="method-args">()</span>
200
+ <span class="method-click-advice">click to toggle source</span>
201
+ </div>
202
+
203
+
204
+ <div class="method-description">
205
+
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="new-source">
211
+ <pre><span class="ruby-comment"># File lib/bigbench/tracker.rb, line 16</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
213
+ <span class="ruby-ivar">@trackings</span> = []
214
+ <span class="ruby-keyword">end</span></pre>
215
+ </div><!-- new-source -->
216
+
217
+ </div>
218
+
219
+
220
+
221
+
222
+ </div><!-- new-method -->
223
+
224
+
225
+ </section><!-- public-class-method-details -->
226
+
227
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
228
+ <h3 class="section-header">Public Instance Methods</h3>
229
+
230
+
231
+ <div id="method-i-track" class="method-detail ">
232
+
233
+ <div class="method-heading">
234
+ <span class="method-name">track</span><span
235
+ class="method-args">(object)</span>
236
+ <span class="method-click-advice">click to toggle source</span>
237
+ </div>
238
+
239
+
240
+ <div class="method-description">
241
+
242
+
243
+
244
+
245
+
246
+ <div class="method-source-code" id="track-source">
247
+ <pre><span class="ruby-comment"># File lib/bigbench/tracker.rb, line 20</span>
248
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">track</span> <span class="ruby-identifier">object</span>
249
+ <span class="ruby-ivar">@trackings</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">to_json</span>
250
+ <span class="ruby-keyword">end</span></pre>
251
+ </div><!-- track-source -->
252
+
253
+ </div>
254
+
255
+
256
+
257
+
258
+ </div><!-- track-method -->
259
+
260
+
261
+ </section><!-- public-instance-method-details -->
262
+
263
+ </section><!-- 5Buntitled-5D -->
264
+
265
+ </div><!-- documentation -->
266
+
267
+
268
+ <footer id="validator-badges">
269
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
270
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
271
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
272
+ </footer>
273
+