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,252 @@
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::Executor - 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/executor.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <nav id="method-list-section" class="section">
63
+ <h3 class="section-header">Methods</h3>
64
+
65
+ <ul class="link-list">
66
+
67
+ <li><a href="#method-c-run-21">::run!</a>
68
+
69
+ </ul>
70
+ </nav>
71
+
72
+ </div>
73
+
74
+ <div id="project-metadata">
75
+ <nav id="fileindex-section" class="section project-section">
76
+ <h3 class="section-header">Pages</h3>
77
+
78
+ <ul>
79
+
80
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
81
+
82
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
83
+
84
+ <li class="file"><a href="../lib/bigbench/help/executor_txt.html">executor</a>
85
+
86
+ </ul>
87
+ </nav>
88
+
89
+ <nav id="classindex-section" class="section project-section">
90
+ <h3 class="section-header">Class and Module Index</h3>
91
+
92
+ <ul class="link-list">
93
+
94
+ <li><a href="../BigBench.html">BigBench</a>
95
+
96
+ <li><a href="../BigBench/Benchmark.html">BigBench::Benchmark</a>
97
+
98
+ <li><a href="../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
99
+
100
+ <li><a href="../BigBench/Bot.html">BigBench::Bot</a>
101
+
102
+ <li><a href="../BigBench/Configuration.html">BigBench::Configuration</a>
103
+
104
+ <li><a href="../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
105
+
106
+ <li><a href="../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
107
+
108
+ <li><a href="../BigBench/Executor.html">BigBench::Executor</a>
109
+
110
+ <li><a href="../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
111
+
112
+ <li><a href="../BigBench/Fragment.html">BigBench::Fragment</a>
113
+
114
+ <li><a href="../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
115
+
116
+ <li><a href="../BigBench/Output.html">BigBench::Output</a>
117
+
118
+ <li><a href="../BigBench/Runner.html">BigBench::Runner</a>
119
+
120
+ <li><a href="../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
121
+
122
+ <li><a href="../BigBench/Store.html">BigBench::Store</a>
123
+
124
+ <li><a href="../BigBench/Tracker.html">BigBench::Tracker</a>
125
+
126
+ <li><a href="../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
127
+
128
+ <li><a href="../Float.html">Float</a>
129
+
130
+ <li><a href="../Helpers.html">Helpers</a>
131
+
132
+ <li><a href="../Object.html">Object</a>
133
+
134
+ <li><a href="../TestWebServer.html">TestWebServer</a>
135
+
136
+ </ul>
137
+ </nav>
138
+
139
+ </div>
140
+ </nav>
141
+
142
+ <div id="documentation">
143
+ <h1 class="module">module BigBench::Executor</h1>
144
+
145
+ <div id="description" class="description">
146
+
147
+ <p>Dispatches the command line commands to <a
148
+ href="../BigBench.html">BigBench</a> calls. Available commands are:</p>
149
+
150
+ <p>Usage:</p>
151
+
152
+ <pre># Local Testing
153
+ bigbench run local PATH_TO_TEST # Runs a test from the local machine. No redis needed.
154
+
155
+ # Remote Testing
156
+ bigbench run bots PATH_TO_TEST [REDIS_URL_WITH_PORT REDIS_PASSWORD] # Deploys and starts the test on all bots
157
+ bigbench start bot [REDIS_URL_WITH_PORT REDIS_PASSWORD] # Starts a bot on a remote machine
158
+
159
+ # Reseting
160
+ bigbench reset all # Resets everything
161
+
162
+ # Help
163
+ bigbench --help || show help # Displays this help</pre>
164
+
165
+ <p>Options:</p>
166
+
167
+ <pre>REDIS_URL_WITH_PORT # Defaults to http://localhost:6379
168
+ REDIS_PASSWORD # Defaults to no password</pre>
169
+
170
+ </div><!-- description -->
171
+
172
+
173
+
174
+
175
+ <section id="5Buntitled-5D" class="documentation-section">
176
+
177
+
178
+
179
+
180
+
181
+ <!-- Constants -->
182
+ <section id="constants-list" class="section">
183
+ <h3 class="section-header">Constants</h3>
184
+ <dl>
185
+
186
+ <dt id="COMMANDS">COMMANDS
187
+
188
+ <dd class="description">
189
+
190
+
191
+ </dl>
192
+ </section>
193
+
194
+
195
+
196
+
197
+ <!-- Methods -->
198
+
199
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
200
+ <h3 class="section-header">Public Class Methods</h3>
201
+
202
+
203
+ <div id="method-c-run-21" class="method-detail ">
204
+
205
+ <div class="method-heading">
206
+ <span class="method-name">run!</span><span
207
+ class="method-args">(argv)</span>
208
+ <span class="method-click-advice">click to toggle source</span>
209
+ </div>
210
+
211
+
212
+ <div class="method-description">
213
+
214
+ <p>Parses and runs the <a href="../BigBench.html">BigBench</a> funtion that is
215
+ supplied via the commandline’s ARGV. It throws an
216
+ <code>InvalidCommand</code> exception if the command is unknown.</p>
217
+
218
+
219
+
220
+ <div class="method-source-code" id="run-21-source">
221
+ <pre><span class="ruby-comment"># File lib/bigbench/executor.rb, line 30</span>
222
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">run!</span>(<span class="ruby-identifier">argv</span>)
223
+ <span class="ruby-constant">BigBench</span><span class="ruby-operator">::</span><span class="ruby-constant">Output</span>.<span class="ruby-identifier">start</span>
224
+
225
+ <span class="ruby-identifier">check_arguments!</span>(<span class="ruby-identifier">argv</span>)
226
+ <span class="ruby-identifier">send</span> <span class="ruby-identifier">to_executor_method</span>(<span class="ruby-identifier">argv</span>), <span class="ruby-identifier">argv</span>
227
+
228
+ <span class="ruby-constant">BigBench</span><span class="ruby-operator">::</span><span class="ruby-constant">Output</span>.<span class="ruby-identifier">done</span>
229
+ <span class="ruby-keyword">end</span></pre>
230
+ </div><!-- run-21-source -->
231
+
232
+ </div>
233
+
234
+
235
+
236
+
237
+ </div><!-- run-21-method -->
238
+
239
+
240
+ </section><!-- public-class-method-details -->
241
+
242
+ </section><!-- 5Buntitled-5D -->
243
+
244
+ </div><!-- documentation -->
245
+
246
+
247
+ <footer id="validator-badges">
248
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
249
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
250
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
251
+ </footer>
252
+
@@ -0,0 +1,222 @@
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::Executor::InvalidCommand - 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/executor.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-i-message">#message</a>
74
+
75
+ </ul>
76
+ </nav>
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+ <nav id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Pages</h3>
83
+
84
+ <ul>
85
+
86
+ <li class="file"><a href="../../Gemfile.html">Gemfile</a>
87
+
88
+ <li class="file"><a href="../../Rakefile.html">Rakefile</a>
89
+
90
+ <li class="file"><a href="../../lib/bigbench/help/executor_txt.html">executor</a>
91
+
92
+ </ul>
93
+ </nav>
94
+
95
+ <nav id="classindex-section" class="section project-section">
96
+ <h3 class="section-header">Class and Module Index</h3>
97
+
98
+ <ul class="link-list">
99
+
100
+ <li><a href="../../BigBench.html">BigBench</a>
101
+
102
+ <li><a href="../../BigBench/Benchmark.html">BigBench::Benchmark</a>
103
+
104
+ <li><a href="../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
105
+
106
+ <li><a href="../../BigBench/Bot.html">BigBench::Bot</a>
107
+
108
+ <li><a href="../../BigBench/Configuration.html">BigBench::Configuration</a>
109
+
110
+ <li><a href="../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
111
+
112
+ <li><a href="../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
113
+
114
+ <li><a href="../../BigBench/Executor.html">BigBench::Executor</a>
115
+
116
+ <li><a href="../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
117
+
118
+ <li><a href="../../BigBench/Fragment.html">BigBench::Fragment</a>
119
+
120
+ <li><a href="../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
121
+
122
+ <li><a href="../../BigBench/Output.html">BigBench::Output</a>
123
+
124
+ <li><a href="../../BigBench/Runner.html">BigBench::Runner</a>
125
+
126
+ <li><a href="../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
127
+
128
+ <li><a href="../../BigBench/Store.html">BigBench::Store</a>
129
+
130
+ <li><a href="../../BigBench/Tracker.html">BigBench::Tracker</a>
131
+
132
+ <li><a href="../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
133
+
134
+ <li><a href="../../Float.html">Float</a>
135
+
136
+ <li><a href="../../Helpers.html">Helpers</a>
137
+
138
+ <li><a href="../../Object.html">Object</a>
139
+
140
+ <li><a href="../../TestWebServer.html">TestWebServer</a>
141
+
142
+ </ul>
143
+ </nav>
144
+
145
+ </div>
146
+ </nav>
147
+
148
+ <div id="documentation">
149
+ <h1 class="class">class BigBench::Executor::InvalidCommand</h1>
150
+
151
+ <div id="description" class="description">
152
+
153
+ <p>Is thrown when the command is not known</p>
154
+
155
+ </div><!-- description -->
156
+
157
+
158
+
159
+
160
+ <section id="5Buntitled-5D" class="documentation-section">
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <!-- Methods -->
170
+
171
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
172
+ <h3 class="section-header">Public Instance Methods</h3>
173
+
174
+
175
+ <div id="method-i-message" class="method-detail ">
176
+
177
+ <div class="method-heading">
178
+ <span class="method-name">message</span><span
179
+ class="method-args">()</span>
180
+ <span class="method-click-advice">click to toggle source</span>
181
+ </div>
182
+
183
+
184
+ <div class="method-description">
185
+
186
+
187
+
188
+
189
+
190
+ <div class="method-source-code" id="message-source">
191
+ <pre><span class="ruby-comment"># File lib/bigbench/executor.rb, line 18</span>
192
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">message</span>
193
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;\n\n&quot;</span>
194
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Sorry, could not compile your command. Please enter one of the following commands:\n\n&quot;</span>
195
+ <span class="ruby-constant">COMMANDS</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">command</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-identifier">command</span> }
196
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot; &quot;</span>
197
+
198
+ <span class="ruby-string">&quot;Sorry, could not compile your command.&quot;</span>
199
+ <span class="ruby-keyword">end</span></pre>
200
+ </div><!-- message-source -->
201
+
202
+ </div>
203
+
204
+
205
+
206
+
207
+ </div><!-- message-method -->
208
+
209
+
210
+ </section><!-- public-instance-method-details -->
211
+
212
+ </section><!-- 5Buntitled-5D -->
213
+
214
+ </div><!-- documentation -->
215
+
216
+
217
+ <footer id="validator-badges">
218
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
219
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
220
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
221
+ </footer>
222
+