redcar 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/CHANGES +24 -0
  2. data/Rakefile +85 -2
  3. data/lib/json/CHANGES +166 -0
  4. data/lib/json/COPYING +58 -0
  5. data/lib/json/GPL +340 -0
  6. data/lib/json/README +358 -0
  7. data/lib/json/Rakefile +292 -0
  8. data/lib/json/TODO +1 -0
  9. data/lib/json/VERSION +1 -0
  10. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
  11. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
  12. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
  13. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
  14. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
  15. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
  16. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
  17. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
  18. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
  19. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
  20. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
  21. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
  22. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
  23. data/lib/json/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
  24. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
  25. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
  26. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
  27. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
  28. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
  29. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
  30. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
  31. data/lib/json/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
  32. data/lib/json/benchmarks/generator2_benchmark.rb +222 -0
  33. data/lib/json/benchmarks/generator_benchmark.rb +224 -0
  34. data/lib/json/benchmarks/ohai.json +1216 -0
  35. data/lib/json/benchmarks/ohai.ruby +1 -0
  36. data/lib/json/benchmarks/parser2_benchmark.rb +251 -0
  37. data/lib/json/benchmarks/parser_benchmark.rb +259 -0
  38. data/lib/json/bin/edit_json.rb +9 -0
  39. data/lib/json/bin/prettify_json.rb +75 -0
  40. data/lib/json/data/example.json +1 -0
  41. data/lib/json/data/index.html +38 -0
  42. data/lib/json/data/prototype.js +4184 -0
  43. data/lib/json/ext/json/ext/generator/extconf.rb +16 -0
  44. data/lib/json/ext/json/ext/generator/generator.c +1323 -0
  45. data/lib/json/ext/json/ext/generator/generator.h +170 -0
  46. data/lib/json/ext/json/ext/parser/extconf.rb +15 -0
  47. data/lib/json/ext/json/ext/parser/parser.c +1935 -0
  48. data/lib/json/ext/json/ext/parser/parser.h +71 -0
  49. data/lib/json/ext/json/ext/parser/parser.rl +792 -0
  50. data/lib/json/install.rb +26 -0
  51. data/lib/json/lib/json.rb +10 -0
  52. data/lib/json/lib/json/Array.xpm +21 -0
  53. data/lib/json/lib/json/FalseClass.xpm +21 -0
  54. data/lib/json/lib/json/Hash.xpm +21 -0
  55. data/lib/json/lib/json/Key.xpm +73 -0
  56. data/lib/json/lib/json/NilClass.xpm +21 -0
  57. data/lib/json/lib/json/Numeric.xpm +28 -0
  58. data/lib/json/lib/json/String.xpm +96 -0
  59. data/lib/json/lib/json/TrueClass.xpm +21 -0
  60. data/lib/json/lib/json/add/core.rb +148 -0
  61. data/lib/json/lib/json/add/rails.rb +58 -0
  62. data/lib/json/lib/json/common.rb +397 -0
  63. data/lib/json/lib/json/editor.rb +1371 -0
  64. data/lib/json/lib/json/ext.rb +15 -0
  65. data/lib/json/lib/json/json.xpm +1499 -0
  66. data/lib/json/lib/json/pure.rb +77 -0
  67. data/lib/json/lib/json/pure/generator.rb +452 -0
  68. data/lib/json/lib/json/pure/parser.rb +307 -0
  69. data/lib/json/lib/json/version.rb +8 -0
  70. data/lib/json/tests/fixtures/fail1.json +1 -0
  71. data/lib/json/tests/fixtures/fail10.json +1 -0
  72. data/lib/json/tests/fixtures/fail11.json +1 -0
  73. data/lib/json/tests/fixtures/fail12.json +1 -0
  74. data/lib/json/tests/fixtures/fail13.json +1 -0
  75. data/lib/json/tests/fixtures/fail14.json +1 -0
  76. data/lib/json/tests/fixtures/fail18.json +1 -0
  77. data/lib/json/tests/fixtures/fail19.json +1 -0
  78. data/lib/json/tests/fixtures/fail2.json +1 -0
  79. data/lib/json/tests/fixtures/fail20.json +1 -0
  80. data/lib/json/tests/fixtures/fail21.json +1 -0
  81. data/lib/json/tests/fixtures/fail22.json +1 -0
  82. data/lib/json/tests/fixtures/fail23.json +1 -0
  83. data/lib/json/tests/fixtures/fail24.json +1 -0
  84. data/lib/json/tests/fixtures/fail25.json +1 -0
  85. data/lib/json/tests/fixtures/fail27.json +2 -0
  86. data/lib/json/tests/fixtures/fail28.json +2 -0
  87. data/lib/json/tests/fixtures/fail3.json +1 -0
  88. data/lib/json/tests/fixtures/fail4.json +1 -0
  89. data/lib/json/tests/fixtures/fail5.json +1 -0
  90. data/lib/json/tests/fixtures/fail6.json +1 -0
  91. data/lib/json/tests/fixtures/fail7.json +1 -0
  92. data/lib/json/tests/fixtures/fail8.json +1 -0
  93. data/lib/json/tests/fixtures/fail9.json +1 -0
  94. data/lib/json/tests/fixtures/pass1.json +56 -0
  95. data/lib/json/tests/fixtures/pass15.json +1 -0
  96. data/lib/json/tests/fixtures/pass16.json +1 -0
  97. data/lib/json/tests/fixtures/pass17.json +1 -0
  98. data/lib/json/tests/fixtures/pass2.json +1 -0
  99. data/lib/json/tests/fixtures/pass26.json +1 -0
  100. data/lib/json/tests/fixtures/pass3.json +6 -0
  101. data/lib/json/tests/test_json.rb +361 -0
  102. data/lib/json/tests/test_json_addition.rb +162 -0
  103. data/lib/json/tests/test_json_encoding.rb +68 -0
  104. data/lib/json/tests/test_json_fixtures.rb +34 -0
  105. data/lib/json/tests/test_json_generate.rb +122 -0
  106. data/lib/json/tests/test_json_rails.rb +144 -0
  107. data/lib/json/tests/test_json_unicode.rb +76 -0
  108. data/lib/json/tools/fuzz.rb +139 -0
  109. data/lib/json/tools/server.rb +61 -0
  110. data/lib/redcar.rb +5 -3
  111. data/lib/redcar/runner.rb +1 -5
  112. data/lib/redcar_quick_start.rb +2 -7
  113. data/plugins/application/features/support/env.rb +6 -1
  114. data/plugins/application/lib/application/command/history.rb +5 -0
  115. data/plugins/application/lib/application/dialog.rb +1 -1
  116. data/plugins/application_swt/lib/application_swt.rb +0 -1
  117. data/plugins/application_swt/lib/application_swt/html_tab.rb +4 -2
  118. data/plugins/application_swt/lib/application_swt/menu.rb +3 -1
  119. data/plugins/application_swt/lib/application_swt/swt_wrapper.rb +4 -0
  120. data/plugins/core/lib/core.rb +1 -0
  121. data/plugins/core/lib/core/has_spi.rb +10 -0
  122. data/plugins/edit_view/features/new_tab.feature +0 -1
  123. data/plugins/edit_view/features/step_definitions/tab_steps.rb +1 -1
  124. data/plugins/edit_view/lib/edit_view.rb +13 -0
  125. data/plugins/edit_view/lib/edit_view/document/command.rb +1 -1
  126. data/plugins/edit_view_swt/lib/edit_view_swt.rb +4 -0
  127. data/plugins/html_view/assets/redcar.css +2 -1
  128. data/plugins/html_view/lib/html_view.rb +19 -6
  129. data/plugins/html_view/lib/html_view/html_tab.rb +2 -2
  130. data/plugins/project/lib/project.rb +11 -0
  131. data/plugins/project/lib/project/dir_controller.rb +252 -2
  132. data/plugins/project/lib/project/dir_mirror.rb +53 -5
  133. data/plugins/project/lib/project/manager.rb +5 -1
  134. data/plugins/project/views/bulk_rename.html.erb +162 -0
  135. data/plugins/redcar/redcar.rb +22 -2
  136. data/plugins/runnables/icons/cog.png +0 -0
  137. data/plugins/runnables/lib/runnables.rb +99 -0
  138. data/plugins/runnables/plugin_no_load.rb +9 -0
  139. data/plugins/tree/lib/tree.rb +61 -0
  140. data/plugins/tree/lib/tree/controller.rb +53 -4
  141. data/plugins/tree/lib/tree/mirror.rb +56 -16
  142. data/plugins/tree_view_swt/lib/tree_view_swt.rb +250 -24
  143. metadata +2700 -2604
  144. data/plugins/application_swt/lib/application_swt/notebook/drag_and_drop_listener.rb +0 -71
@@ -0,0 +1,222 @@
1
+ #!/usr/bin/env ruby
2
+ # CODING: UTF-8
3
+
4
+ require 'rbconfig'
5
+ RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
6
+ RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake')
7
+ require 'bullshit'
8
+ case ARGV.first
9
+ when 'ext'
10
+ require 'json/ext'
11
+ when 'pure'
12
+ require 'json/pure'
13
+ when 'rails'
14
+ require 'active_support'
15
+ when 'yajl'
16
+ require 'yajl'
17
+ require 'yajl/json_gem'
18
+ require 'stringio'
19
+ end
20
+
21
+ module JSON
22
+ def self.[](*) end
23
+ end
24
+
25
+ module Generator2BenchmarkCommon
26
+ include JSON
27
+
28
+ def setup
29
+ @big = eval File.read(File.join(File.dirname(__FILE__), 'ohai.ruby'))
30
+ end
31
+
32
+ def generic_reset_method
33
+ @result and @result.size >= 16 or raise @result.to_s
34
+ end
35
+ end
36
+
37
+ module JSONGeneratorCommon
38
+ include Generator2BenchmarkCommon
39
+
40
+ def benchmark_generator_fast
41
+ @result = JSON.fast_generate(@big)
42
+ end
43
+
44
+ alias reset_benchmark_generator_fast generic_reset_method
45
+
46
+ def benchmark_generator_safe
47
+ @result = JSON.generate(@big)
48
+ end
49
+
50
+ alias reset_benchmark_generator_safe generic_reset_method
51
+
52
+ def benchmark_generator_pretty
53
+ @result = JSON.pretty_generate(@big)
54
+ end
55
+
56
+ alias reset_benchmark_generator_pretty generic_reset_method
57
+
58
+ def benchmark_generator_ascii
59
+ @result = JSON.generate(@big, :ascii_only => true)
60
+ end
61
+
62
+ alias reset_benchmark_generator_ascii generic_reset_method
63
+ end
64
+
65
+ class Generator2BenchmarkExt < Bullshit::RepeatCase
66
+ include JSONGeneratorCommon
67
+
68
+ warmup yes
69
+ iterations 2000
70
+
71
+ truncate_data do
72
+ enabled false
73
+ alpha_level 0.05
74
+ window_size 50
75
+ slope_angle 0.1
76
+ end
77
+
78
+ autocorrelation do
79
+ alpha_level 0.05
80
+ max_lags 50
81
+ file yes
82
+ end
83
+
84
+
85
+ output_dir File.join(File.dirname(__FILE__), 'data')
86
+ output_filename benchmark_name + '.log'
87
+ data_file yes
88
+ histogram yes
89
+ end
90
+
91
+ class Generator2BenchmarkPure < Bullshit::RepeatCase
92
+ include JSONGeneratorCommon
93
+
94
+ warmup yes
95
+ iterations 400
96
+
97
+ truncate_data do
98
+ enabled false
99
+ alpha_level 0.05
100
+ window_size 50
101
+ slope_angle 0.1
102
+ end
103
+
104
+ autocorrelation do
105
+ alpha_level 0.05
106
+ max_lags 50
107
+ file yes
108
+ end
109
+
110
+ output_dir File.join(File.dirname(__FILE__), 'data')
111
+ output_filename benchmark_name + '.log'
112
+ data_file yes
113
+ histogram yes
114
+ end
115
+
116
+ class Generator2BenchmarkRails < Bullshit::RepeatCase
117
+ include Generator2BenchmarkCommon
118
+
119
+ warmup yes
120
+ iterations 400
121
+
122
+ truncate_data do
123
+ enabled false
124
+ alpha_level 0.05
125
+ window_size 50
126
+ slope_angle 0.1
127
+ end
128
+
129
+ autocorrelation do
130
+ alpha_level 0.05
131
+ max_lags 50
132
+ file yes
133
+ end
134
+
135
+ output_dir File.join(File.dirname(__FILE__), 'data')
136
+ output_filename benchmark_name + '.log'
137
+ data_file yes
138
+ histogram yes
139
+
140
+ def benchmark_generator
141
+ @result = @big.to_json
142
+ end
143
+
144
+ alias reset_benchmark_generator generic_reset_method
145
+ end
146
+
147
+ class Generator2BenchmarkYajl < Bullshit::RepeatCase
148
+ include Generator2BenchmarkCommon
149
+
150
+ warmup yes
151
+ iterations 2000
152
+
153
+ truncate_data do
154
+ enabled false
155
+ alpha_level 0.05
156
+ window_size 50
157
+ slope_angle 0.1
158
+ end
159
+
160
+ autocorrelation do
161
+ alpha_level 0.05
162
+ max_lags 50
163
+ file yes
164
+ end
165
+
166
+ output_dir File.join(File.dirname(__FILE__), 'data')
167
+ output_filename benchmark_name + '.log'
168
+ data_file yes
169
+ histogram yes
170
+
171
+ def benchmark_generator
172
+ output = StringIO.new
173
+ Yajl::Encoder.new.encode(@big, output)
174
+ @result = output.string
175
+ end
176
+
177
+ def benchmark_generator_gem_api
178
+ @result = @big.to_json
179
+ end
180
+
181
+ def reset_benchmark_generator
182
+ generic_reset_method
183
+ end
184
+ end
185
+
186
+ if $0 == __FILE__
187
+ Bullshit::Case.autorun false
188
+
189
+ case ARGV.first
190
+ when 'ext'
191
+ Generator2BenchmarkExt.run
192
+ when 'pure'
193
+ Generator2BenchmarkPure.run
194
+ when 'rails'
195
+ Generator2BenchmarkRails.run
196
+ when 'yajl'
197
+ Generator2BenchmarkYajl.run
198
+ else
199
+ system "#{RAKE_PATH} clean"
200
+ system "#{RUBY_PATH} #$0 rails"
201
+ system "#{RUBY_PATH} #$0 pure"
202
+ system "#{RAKE_PATH} compile_ext"
203
+ system "#{RUBY_PATH} #$0 ext"
204
+ system "#{RUBY_PATH} #$0 yajl"
205
+ Bullshit.compare do
206
+ output_filename File.join(File.dirname(__FILE__), 'data', 'Generator2BenchmarkComparison.log')
207
+
208
+ benchmark Generator2BenchmarkExt, :generator_fast, :load => yes
209
+ benchmark Generator2BenchmarkExt, :generator_safe, :load => yes
210
+ benchmark Generator2BenchmarkExt, :generator_pretty, :load => yes
211
+ benchmark Generator2BenchmarkExt, :generator_ascii, :load => yes
212
+ benchmark Generator2BenchmarkPure, :generator_fast, :load => yes
213
+ benchmark Generator2BenchmarkPure, :generator_safe, :load => yes
214
+ benchmark Generator2BenchmarkPure, :generator_pretty, :load => yes
215
+ benchmark Generator2BenchmarkPure, :generator_ascii, :load => yes
216
+ benchmark Generator2BenchmarkRails, :generator, :load => yes
217
+ benchmark Generator2BenchmarkYajl, :generator, :load => yes
218
+ benchmark Generator2BenchmarkYajl, :generator_gem_api, :load => yes
219
+ end
220
+ end
221
+ end
222
+
@@ -0,0 +1,224 @@
1
+ #!/usr/bin/env ruby
2
+ # CODING: UTF-8
3
+
4
+ require 'rbconfig'
5
+ RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
6
+ RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake')
7
+ require 'bullshit'
8
+ case ARGV.first
9
+ when 'ext'
10
+ require 'json/ext'
11
+ when 'pure'
12
+ require 'json/pure'
13
+ when 'rails'
14
+ require 'active_support'
15
+ when 'yajl'
16
+ require 'yajl'
17
+ require 'yajl/json_gem'
18
+ require 'stringio'
19
+ end
20
+
21
+ module JSON
22
+ def self.[](*) end
23
+ end
24
+
25
+ module GeneratorBenchmarkCommon
26
+ include JSON
27
+
28
+ def setup
29
+ a = [ nil, false, true, "fÖßÄr", [ "n€st€d", true ], { "fooß" => "bär", "quux" => true } ]
30
+ puts a.to_json if a.respond_to?(:to_json)
31
+ @big = a * 100
32
+ end
33
+
34
+ def generic_reset_method
35
+ @result and @result.size > 2 + 6 * @big.size or raise @result.to_s
36
+ end
37
+ end
38
+
39
+ module JSONGeneratorCommon
40
+ include GeneratorBenchmarkCommon
41
+
42
+ def benchmark_generator_fast
43
+ @result = JSON.fast_generate(@big)
44
+ end
45
+
46
+ alias reset_benchmark_generator_fast generic_reset_method
47
+
48
+ def benchmark_generator_safe
49
+ @result = JSON.generate(@big)
50
+ end
51
+
52
+ alias reset_benchmark_generator_safe generic_reset_method
53
+
54
+ def benchmark_generator_pretty
55
+ @result = JSON.pretty_generate(@big)
56
+ end
57
+
58
+ alias reset_benchmark_generator_pretty generic_reset_method
59
+
60
+ def benchmark_generator_ascii
61
+ @result = JSON.generate(@big, :ascii_only => true)
62
+ end
63
+
64
+ alias reset_benchmark_generator_ascii generic_reset_method
65
+ end
66
+
67
+ class GeneratorBenchmarkExt < Bullshit::RepeatCase
68
+ include JSONGeneratorCommon
69
+
70
+ warmup yes
71
+ iterations 2000
72
+
73
+ truncate_data do
74
+ enabled false
75
+ alpha_level 0.05
76
+ window_size 50
77
+ slope_angle 0.1
78
+ end
79
+
80
+ autocorrelation do
81
+ alpha_level 0.05
82
+ max_lags 50
83
+ file yes
84
+ end
85
+
86
+
87
+ output_dir File.join(File.dirname(__FILE__), 'data')
88
+ output_filename benchmark_name + '.log'
89
+ data_file yes
90
+ histogram yes
91
+ end
92
+
93
+ class GeneratorBenchmarkPure < Bullshit::RepeatCase
94
+ include JSONGeneratorCommon
95
+
96
+ warmup yes
97
+ iterations 400
98
+
99
+ truncate_data do
100
+ enabled false
101
+ alpha_level 0.05
102
+ window_size 50
103
+ slope_angle 0.1
104
+ end
105
+
106
+ autocorrelation do
107
+ alpha_level 0.05
108
+ max_lags 50
109
+ file yes
110
+ end
111
+
112
+ output_dir File.join(File.dirname(__FILE__), 'data')
113
+ output_filename benchmark_name + '.log'
114
+ data_file yes
115
+ histogram yes
116
+ end
117
+
118
+ class GeneratorBenchmarkRails < Bullshit::RepeatCase
119
+ include GeneratorBenchmarkCommon
120
+
121
+ warmup yes
122
+ iterations 400
123
+
124
+ truncate_data do
125
+ enabled false
126
+ alpha_level 0.05
127
+ window_size 50
128
+ slope_angle 0.1
129
+ end
130
+
131
+ autocorrelation do
132
+ alpha_level 0.05
133
+ max_lags 50
134
+ file yes
135
+ end
136
+
137
+ output_dir File.join(File.dirname(__FILE__), 'data')
138
+ output_filename benchmark_name + '.log'
139
+ data_file yes
140
+ histogram yes
141
+
142
+ def benchmark_generator
143
+ @result = @big.to_json
144
+ end
145
+
146
+ alias reset_benchmark_generator generic_reset_method
147
+ end
148
+
149
+ class GeneratorBenchmarkYajl < Bullshit::RepeatCase
150
+ include GeneratorBenchmarkCommon
151
+
152
+ warmup yes
153
+ iterations 2000
154
+
155
+ truncate_data do
156
+ enabled false
157
+ alpha_level 0.05
158
+ window_size 50
159
+ slope_angle 0.1
160
+ end
161
+
162
+ autocorrelation do
163
+ alpha_level 0.05
164
+ max_lags 50
165
+ file yes
166
+ end
167
+
168
+ output_dir File.join(File.dirname(__FILE__), 'data')
169
+ output_filename benchmark_name + '.log'
170
+ data_file yes
171
+ histogram yes
172
+
173
+ def benchmark_generator
174
+ output = StringIO.new
175
+ Yajl::Encoder.new.encode(@big, output)
176
+ @result = output.string
177
+ end
178
+
179
+ def benchmark_generator_gem_api
180
+ @result = @big.to_json
181
+ end
182
+
183
+ def reset_benchmark_generator
184
+ generic_reset_method
185
+ end
186
+ end
187
+
188
+ if $0 == __FILE__
189
+ Bullshit::Case.autorun false
190
+
191
+ case ARGV.first
192
+ when 'ext'
193
+ GeneratorBenchmarkExt.run
194
+ when 'pure'
195
+ GeneratorBenchmarkPure.run
196
+ when 'rails'
197
+ GeneratorBenchmarkRails.run
198
+ when 'yajl'
199
+ GeneratorBenchmarkYajl.run
200
+ else
201
+ system "#{RAKE_PATH} clean"
202
+ system "#{RUBY_PATH} #$0 rails"
203
+ system "#{RUBY_PATH} #$0 pure"
204
+ system "#{RAKE_PATH} compile_ext"
205
+ system "#{RUBY_PATH} #$0 ext"
206
+ system "#{RUBY_PATH} #$0 yajl"
207
+ Bullshit.compare do
208
+ output_filename File.join(File.dirname(__FILE__), 'data', 'GeneratorBenchmarkComparison.log')
209
+
210
+ benchmark GeneratorBenchmarkExt, :generator_fast, :load => yes
211
+ benchmark GeneratorBenchmarkExt, :generator_safe, :load => yes
212
+ benchmark GeneratorBenchmarkExt, :generator_pretty, :load => yes
213
+ benchmark GeneratorBenchmarkExt, :generator_ascii, :load => yes
214
+ benchmark GeneratorBenchmarkPure, :generator_fast, :load => yes
215
+ benchmark GeneratorBenchmarkPure, :generator_safe, :load => yes
216
+ benchmark GeneratorBenchmarkPure, :generator_pretty, :load => yes
217
+ benchmark GeneratorBenchmarkPure, :generator_ascii, :load => yes
218
+ benchmark GeneratorBenchmarkRails, :generator, :load => yes
219
+ benchmark GeneratorBenchmarkYajl, :generator, :load => yes
220
+ benchmark GeneratorBenchmarkYajl, :generator_gem_api, :load => yes
221
+ end
222
+ end
223
+ end
224
+
@@ -0,0 +1,1216 @@
1
+ {
2
+ "command": {
3
+ "ps": "ps -ef"
4
+ },
5
+ "kernel": {
6
+ "modules": {
7
+ "org.virtualbox.kext.VBoxDrv": {
8
+ "size": 118784,
9
+ "version": "2.2.0",
10
+ "index": "114",
11
+ "refcount": "3"
12
+ },
13
+ "com.cisco.nke.ipsec": {
14
+ "size": 454656,
15
+ "version": "2.0.1",
16
+ "index": "111",
17
+ "refcount": "0"
18
+ },
19
+ "com.apple.driver.AppleAPIC": {
20
+ "size": 12288,
21
+ "version": "1.4",
22
+ "index": "26",
23
+ "refcount": "0"
24
+ },
25
+ "com.apple.driver.AirPort.Atheros": {
26
+ "size": 593920,
27
+ "version": "318.8.3",
28
+ "index": "88",
29
+ "refcount": "0"
30
+ },
31
+ "com.apple.driver.AppleIntelCPUPowerManagement": {
32
+ "size": 102400,
33
+ "version": "59.0.1",
34
+ "index": "22",
35
+ "refcount": "0"
36
+ },
37
+ "com.apple.iokit.IOStorageFamily": {
38
+ "size": 98304,
39
+ "version": "1.5.5",
40
+ "index": "44",
41
+ "refcount": "9"
42
+ },
43
+ "com.apple.iokit.IOATAPIProtocolTransport": {
44
+ "size": 16384,
45
+ "version": "1.5.2",
46
+ "index": "52",
47
+ "refcount": "0"
48
+ },
49
+ "com.apple.iokit.IOPCIFamily": {
50
+ "size": 65536,
51
+ "version": "2.5",
52
+ "index": "17",
53
+ "refcount": "18"
54
+ },
55
+ "com.apple.driver.AppleHPET": {
56
+ "size": 12288,
57
+ "version": "1.3",
58
+ "index": "33",
59
+ "refcount": "0"
60
+ },
61
+ "com.apple.driver.AppleUSBHub": {
62
+ "size": 49152,
63
+ "version": "3.2.7",
64
+ "index": "47",
65
+ "refcount": "0"
66
+ },
67
+ "com.apple.iokit.IOFireWireFamily": {
68
+ "size": 258048,
69
+ "version": "3.4.6",
70
+ "index": "49",
71
+ "refcount": "2"
72
+ },
73
+ "com.apple.driver.AppleUSBComposite": {
74
+ "size": 16384,
75
+ "version": "3.2.0",
76
+ "index": "60",
77
+ "refcount": "1"
78
+ },
79
+ "com.apple.driver.AppleIntelPIIXATA": {
80
+ "size": 36864,
81
+ "version": "2.0.0",
82
+ "index": "41",
83
+ "refcount": "0"
84
+ },
85
+ "com.apple.driver.AppleSmartBatteryManager": {
86
+ "size": 28672,
87
+ "version": "158.6.0",
88
+ "index": "32",
89
+ "refcount": "0"
90
+ },
91
+ "com.apple.filesystems.udf": {
92
+ "size": 233472,
93
+ "version": "2.0.2",
94
+ "index": "119",
95
+ "refcount": "0"
96
+ },
97
+ "com.apple.iokit.IOSMBusFamily": {
98
+ "size": 12288,
99
+ "version": "1.1",
100
+ "index": "27",
101
+ "refcount": "2"
102
+ },
103
+ "com.apple.iokit.IOACPIFamily": {
104
+ "size": 16384,
105
+ "version": "1.2.0",
106
+ "index": "18",
107
+ "refcount": "10"
108
+ },
109
+ "foo.tap": {
110
+ "size": 24576,
111
+ "version": "1.0",
112
+ "index": "113",
113
+ "refcount": "0"
114
+ },
115
+ "com.vmware.kext.vmx86": {
116
+ "size": 864256,
117
+ "version": "2.0.4",
118
+ "index": "104",
119
+ "refcount": "0"
120
+ },
121
+ "com.apple.iokit.CHUDUtils": {
122
+ "size": 28672,
123
+ "version": "200",
124
+ "index": "98",
125
+ "refcount": "0"
126
+ },
127
+ "org.virtualbox.kext.VBoxNetAdp": {
128
+ "size": 8192,
129
+ "version": "2.2.0",
130
+ "index": "117",
131
+ "refcount": "0"
132
+ },
133
+ "com.apple.filesystems.autofs": {
134
+ "size": 45056,
135
+ "version": "2.0.1",
136
+ "index": "109",
137
+ "refcount": "0"
138
+ },
139
+ "com.vmware.kext.vmnet": {
140
+ "size": 36864,
141
+ "version": "2.0.4",
142
+ "index": "108",
143
+ "refcount": "0"
144
+ },
145
+ "com.apple.driver.AppleACPIButtons": {
146
+ "size": 16384,
147
+ "version": "1.2.4",
148
+ "index": "30",
149
+ "refcount": "0"
150
+ },
151
+ "com.apple.driver.AppleFWOHCI": {
152
+ "size": 139264,
153
+ "version": "3.7.2",
154
+ "index": "50",
155
+ "refcount": "0"
156
+ },
157
+ "com.apple.iokit.IOSCSIArchitectureModelFamily": {
158
+ "size": 102400,
159
+ "version": "2.0.5",
160
+ "index": "51",
161
+ "refcount": "4"
162
+ },
163
+ "com.apple.iokit.IOSCSIBlockCommandsDevice": {
164
+ "size": 90112,
165
+ "version": "2.0.5",
166
+ "index": "57",
167
+ "refcount": "1"
168
+ },
169
+ "com.apple.driver.AppleACPIPCI": {
170
+ "size": 12288,
171
+ "version": "1.2.4",
172
+ "index": "31",
173
+ "refcount": "0"
174
+ },
175
+ "com.apple.security.seatbelt": {
176
+ "size": 98304,
177
+ "version": "107.10",
178
+ "index": "25",
179
+ "refcount": "0"
180
+ },
181
+ "com.apple.driver.AppleUpstreamUserClient": {
182
+ "size": 16384,
183
+ "version": "2.7.2",
184
+ "index": "100",
185
+ "refcount": "0"
186
+ },
187
+ "com.apple.kext.OSvKernDSPLib": {
188
+ "size": 12288,
189
+ "version": "1.1",
190
+ "index": "79",
191
+ "refcount": "1"
192
+ },
193
+ "com.apple.iokit.IOBDStorageFamily": {
194
+ "size": 20480,
195
+ "version": "1.5",
196
+ "index": "58",
197
+ "refcount": "1"
198
+ },
199
+ "com.apple.iokit.IOGraphicsFamily": {
200
+ "size": 118784,
201
+ "version": "1.7.1",
202
+ "index": "70",
203
+ "refcount": "5"
204
+ },
205
+ "com.apple.iokit.IONetworkingFamily": {
206
+ "size": 90112,
207
+ "version": "1.6.1",
208
+ "index": "82",
209
+ "refcount": "4"
210
+ },
211
+ "com.apple.iokit.IOATAFamily": {
212
+ "size": 53248,
213
+ "version": "2.0.0",
214
+ "index": "40",
215
+ "refcount": "2"
216
+ },
217
+ "com.apple.iokit.IOUSBHIDDriver": {
218
+ "size": 20480,
219
+ "version": "3.2.2",
220
+ "index": "63",
221
+ "refcount": "2"
222
+ },
223
+ "org.virtualbox.kext.VBoxUSB": {
224
+ "size": 28672,
225
+ "version": "2.2.0",
226
+ "index": "115",
227
+ "refcount": "0"
228
+ },
229
+ "com.vmware.kext.vmioplug": {
230
+ "size": 24576,
231
+ "version": "2.0.4",
232
+ "index": "107",
233
+ "refcount": "0"
234
+ },
235
+ "com.apple.security.TMSafetyNet": {
236
+ "size": 12288,
237
+ "version": "3",
238
+ "index": "23",
239
+ "refcount": "0"
240
+ },
241
+ "com.apple.iokit.IONDRVSupport": {
242
+ "size": 57344,
243
+ "version": "1.7.1",
244
+ "index": "71",
245
+ "refcount": "3"
246
+ },
247
+ "com.apple.BootCache": {
248
+ "size": 20480,
249
+ "version": "30.3",
250
+ "index": "20",
251
+ "refcount": "0"
252
+ },
253
+ "com.apple.iokit.IOUSBUserClient": {
254
+ "size": 8192,
255
+ "version": "3.2.4",
256
+ "index": "46",
257
+ "refcount": "1"
258
+ },
259
+ "com.apple.iokit.IOSCSIMultimediaCommandsDevice": {
260
+ "size": 90112,
261
+ "version": "2.0.5",
262
+ "index": "59",
263
+ "refcount": "0"
264
+ },
265
+ "com.apple.driver.AppleIRController": {
266
+ "size": 20480,
267
+ "version": "110",
268
+ "index": "78",
269
+ "refcount": "0"
270
+ },
271
+ "com.apple.driver.AudioIPCDriver": {
272
+ "size": 16384,
273
+ "version": "1.0.5",
274
+ "index": "81",
275
+ "refcount": "0"
276
+ },
277
+ "org.virtualbox.kext.VBoxNetFlt": {
278
+ "size": 16384,
279
+ "version": "2.2.0",
280
+ "index": "116",
281
+ "refcount": "0"
282
+ },
283
+ "com.apple.driver.AppleLPC": {
284
+ "size": 12288,
285
+ "version": "1.2.11",
286
+ "index": "73",
287
+ "refcount": "0"
288
+ },
289
+ "com.apple.iokit.CHUDKernLib": {
290
+ "size": 20480,
291
+ "version": "196",
292
+ "index": "93",
293
+ "refcount": "2"
294
+ },
295
+ "com.apple.iokit.CHUDProf": {
296
+ "size": 49152,
297
+ "version": "207",
298
+ "index": "97",
299
+ "refcount": "0"
300
+ },
301
+ "com.apple.NVDAResman": {
302
+ "size": 2478080,
303
+ "version": "5.3.6",
304
+ "index": "90",
305
+ "refcount": "2"
306
+ },
307
+ "com.apple.driver.AppleACPIEC": {
308
+ "size": 20480,
309
+ "version": "1.2.4",
310
+ "index": "28",
311
+ "refcount": "0"
312
+ },
313
+ "foo.tun": {
314
+ "size": 24576,
315
+ "version": "1.0",
316
+ "index": "118",
317
+ "refcount": "0"
318
+ },
319
+ "com.apple.iokit.IOSerialFamily": {
320
+ "size": 36864,
321
+ "version": "9.3",
322
+ "index": "102",
323
+ "refcount": "1"
324
+ },
325
+ "com.apple.GeForce": {
326
+ "size": 622592,
327
+ "version": "5.3.6",
328
+ "index": "96",
329
+ "refcount": "0"
330
+ },
331
+ "com.apple.iokit.IOCDStorageFamily": {
332
+ "size": 32768,
333
+ "version": "1.5",
334
+ "index": "55",
335
+ "refcount": "3"
336
+ },
337
+ "com.apple.driver.AppleUSBEHCI": {
338
+ "size": 73728,
339
+ "version": "3.2.5",
340
+ "index": "39",
341
+ "refcount": "0"
342
+ },
343
+ "com.apple.nvidia.nv50hal": {
344
+ "size": 2445312,
345
+ "version": "5.3.6",
346
+ "index": "91",
347
+ "refcount": "0"
348
+ },
349
+ "com.apple.driver.AppleSMBIOS": {
350
+ "size": 16384,
351
+ "version": "1.1.1",
352
+ "index": "29",
353
+ "refcount": "0"
354
+ },
355
+ "com.apple.driver.AppleBacklight": {
356
+ "size": 16384,
357
+ "version": "1.4.4",
358
+ "index": "72",
359
+ "refcount": "0"
360
+ },
361
+ "com.apple.driver.AppleACPIPlatform": {
362
+ "size": 253952,
363
+ "version": "1.2.4",
364
+ "index": "19",
365
+ "refcount": "3"
366
+ },
367
+ "com.apple.iokit.SCSITaskUserClient": {
368
+ "size": 24576,
369
+ "version": "2.0.5",
370
+ "index": "54",
371
+ "refcount": "0"
372
+ },
373
+ "com.apple.iokit.IOHIDFamily": {
374
+ "size": 233472,
375
+ "version": "1.5.3",
376
+ "index": "21",
377
+ "refcount": "7"
378
+ },
379
+ "com.apple.driver.DiskImages": {
380
+ "size": 65536,
381
+ "version": "195.2.2",
382
+ "index": "101",
383
+ "refcount": "0"
384
+ },
385
+ "com.apple.iokit.IODVDStorageFamily": {
386
+ "size": 24576,
387
+ "version": "1.5",
388
+ "index": "56",
389
+ "refcount": "2"
390
+ },
391
+ "com.apple.driver.XsanFilter": {
392
+ "size": 20480,
393
+ "version": "2.7.91",
394
+ "index": "53",
395
+ "refcount": "0"
396
+ },
397
+ "com.apple.driver.AppleEFIRuntime": {
398
+ "size": 12288,
399
+ "version": "1.2.0",
400
+ "index": "35",
401
+ "refcount": "1"
402
+ },
403
+ "com.apple.driver.AppleRTC": {
404
+ "size": 20480,
405
+ "version": "1.2.3",
406
+ "index": "34",
407
+ "refcount": "0"
408
+ },
409
+ "com.apple.iokit.IOFireWireIP": {
410
+ "size": 36864,
411
+ "version": "1.7.6",
412
+ "index": "83",
413
+ "refcount": "0"
414
+ },
415
+ "com.vmware.kext.vmci": {
416
+ "size": 45056,
417
+ "version": "2.0.4",
418
+ "index": "106",
419
+ "refcount": "0"
420
+ },
421
+ "com.apple.iokit.IO80211Family": {
422
+ "size": 126976,
423
+ "version": "215.1",
424
+ "index": "87",
425
+ "refcount": "1"
426
+ },
427
+ "com.apple.nke.applicationfirewall": {
428
+ "size": 32768,
429
+ "version": "1.0.77",
430
+ "index": "24",
431
+ "refcount": "0"
432
+ },
433
+ "com.apple.iokit.IOAHCIBlockStorage": {
434
+ "size": 69632,
435
+ "version": "1.2.0",
436
+ "index": "48",
437
+ "refcount": "0"
438
+ },
439
+ "com.apple.driver.AppleUSBUHCI": {
440
+ "size": 57344,
441
+ "version": "3.2.5",
442
+ "index": "38",
443
+ "refcount": "0"
444
+ },
445
+ "com.apple.iokit.IOAHCIFamily": {
446
+ "size": 24576,
447
+ "version": "1.5.0",
448
+ "index": "42",
449
+ "refcount": "2"
450
+ },
451
+ "com.apple.driver.AppleAHCIPort": {
452
+ "size": 53248,
453
+ "version": "1.5.2",
454
+ "index": "43",
455
+ "refcount": "0"
456
+ },
457
+ "com.apple.driver.AppleEFINVRAM": {
458
+ "size": 24576,
459
+ "version": "1.2.0",
460
+ "index": "36",
461
+ "refcount": "0"
462
+ },
463
+ "com.apple.iokit.IOUSBFamily": {
464
+ "size": 167936,
465
+ "version": "3.2.7",
466
+ "index": "37",
467
+ "refcount": "13"
468
+ },
469
+ "com.apple.driver.AppleUSBMergeNub": {
470
+ "size": 12288,
471
+ "version": "3.2.4",
472
+ "index": "61",
473
+ "refcount": "0"
474
+ }
475
+ },
476
+ "machine": "i386",
477
+ "name": "Darwin",
478
+ "os": "Darwin",
479
+ "version": "Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1\/RELEASE_I386",
480
+ "release": "9.6.0"
481
+ },
482
+ "platform_version": "10.5.6",
483
+ "platform": "mac_os_x",
484
+ "ipaddress": "192.168.88.1",
485
+ "keys": {
486
+ "ssh": {
487
+ "host_dsa_public": "private",
488
+ "host_rsa_public": "private"
489
+ }
490
+ },
491
+ "network": {
492
+ "settings": {
493
+ "net.inet6.ip6.forwarding": "0",
494
+ "net.inet.ip.dummynet.debug": "0",
495
+ "net.inet.ip.rtexpire": "10",
496
+ "net.inet6.ipsec6.esp_trans_deflev": "1",
497
+ "net.inet.tcp.tcbhashsize": "4096",
498
+ "net.key.esp_auth": "0",
499
+ "net.inet6.ip6.hlim": "64",
500
+ "net.inet.ip.fw.dyn_fin_lifetime": "1",
501
+ "net.inet.ip.fw.dyn_udp_lifetime": "10",
502
+ "net.inet.icmp.bmcastecho": "1",
503
+ "net.athforceBias": "2 2",
504
+ "net.athbgscan": "1 1",
505
+ "net.inet.tcp.reass.maxsegments": "2048",
506
+ "net.inet6.ip6.auto_flowlabel": "1",
507
+ "net.inet6.ip6.rtmaxcache": "128",
508
+ "net.inet.tcp.sendspace": "131072",
509
+ "net.inet.tcp.keepinit": "75000",
510
+ "net.inet.ip.dummynet.max_chain_len": "16",
511
+ "net.inet.tcp.rfc1644": "0",
512
+ "net.inet.ip.fw.curr_dyn_buckets": "256",
513
+ "net.inet.ip.dummynet.ready_heap": "0",
514
+ "net.inet.ip.portrange.first": "49152",
515
+ "net.inet.tcp.background_io_trigger": "5",
516
+ "net.link.ether.inet.host_down_time": "20",
517
+ "net.inet6.ipsec6.def_policy": "1",
518
+ "net.inet6.ipsec6.ecn": "0",
519
+ "net.inet.ip.fastforwarding": "0",
520
+ "net.athaddbaignore": "0 0",
521
+ "net.inet6.ip6.v6only": "0",
522
+ "net.inet.tcp.sack": "1",
523
+ "net.inet6.ip6.rtexpire": "3600",
524
+ "net.link.ether.inet.proxyall": "0",
525
+ "net.inet6.ip6.keepfaith": "0",
526
+ "net.key.spi_trycnt": "1000",
527
+ "net.link.ether.inet.prune_intvl": "300",
528
+ "net.inet.tcp.ecn_initiate_out": "0",
529
+ "net.inet.ip.fw.dyn_rst_lifetime": "1",
530
+ "net.local.stream.sendspace": "8192",
531
+ "net.inet.tcp.socket_unlocked_on_output": "1",
532
+ "net.inet.ip.fw.verbose_limit": "0",
533
+ "net.local.dgram.recvspace": "4096",
534
+ "net.inet.ipsec.debug": "0",
535
+ "net.link.ether.inet.log_arp_warnings": "0",
536
+ "net.inet.tcp.ecn_negotiate_in": "0",
537
+ "net.inet.tcp.rfc3465": "1",
538
+ "net.inet.tcp.icmp_may_rst": "1",
539
+ "net.link.ether.inet.sendllconflict": "0",
540
+ "net.inet.ipsec.ah_offsetmask": "0",
541
+ "net.key.blockacq_count": "10",
542
+ "net.inet.tcp.delayed_ack": "3",
543
+ "net.inet.ip.fw.verbose": "2",
544
+ "net.inet.ip.fw.dyn_count": "0",
545
+ "net.inet.tcp.slowlink_wsize": "8192",
546
+ "net.inet6.ip6.fw.enable": "1",
547
+ "net.inet.ip.portrange.hilast": "65535",
548
+ "net.inet.icmp.maskrepl": "0",
549
+ "net.link.ether.inet.apple_hwcksum_rx": "1",
550
+ "net.inet.tcp.drop_synfin": "1",
551
+ "net.key.spi_maxval": "268435455",
552
+ "net.inet.ipsec.ecn": "0",
553
+ "net.inet.ip.fw.dyn_keepalive": "1",
554
+ "net.key.int_random": "60",
555
+ "net.key.debug": "0",
556
+ "net.inet.ip.dummynet.curr_time": "0",
557
+ "net.inet.udp.blackhole": "0",
558
+ "net.athaggrqmin": "1 1",
559
+ "net.athppmenable": "1 1",
560
+ "net.inet.ip.fw.dyn_syn_lifetime": "20",
561
+ "net.inet.tcp.keepidle": "7200000",
562
+ "net.inet6.ip6.tempvltime": "604800",
563
+ "net.inet.tcp.recvspace": "358400",
564
+ "net.inet.tcp.keepintvl": "75000",
565
+ "net.inet.udp.maxdgram": "9216",
566
+ "net.inet.ip.maxchainsent": "0",
567
+ "net.inet.ipsec.esp_net_deflev": "1",
568
+ "net.inet6.icmp6.nd6_useloopback": "1",
569
+ "net.inet.tcp.slowstart_flightsize": "1",
570
+ "net.inet.ip.fw.debug": "0",
571
+ "net.inet.ip.linklocal.in.allowbadttl": "1",
572
+ "net.key.spi_minval": "256",
573
+ "net.inet.ip.forwarding": "0",
574
+ "net.inet.tcp.v6mssdflt": "1024",
575
+ "net.key.larval_lifetime": "30",
576
+ "net.inet6.ip6.fw.verbose_limit": "0",
577
+ "net.inet.ip.dummynet.red_lookup_depth": "256",
578
+ "net.inet.tcp.pcbcount": "36",
579
+ "net.inet.ip.fw.dyn_ack_lifetime": "300",
580
+ "net.inet.ip.portrange.lowlast": "600",
581
+ "net.athCCAThreshold": "28 28",
582
+ "net.link.ether.inet.useloopback": "1",
583
+ "net.athqdepth": "0 0",
584
+ "net.inet.ip.ttl": "64",
585
+ "net.inet.ip.rtmaxcache": "128",
586
+ "net.inet.ipsec.bypass": "0",
587
+ "net.inet6.icmp6.nd6_debug": "0",
588
+ "net.inet.ip.use_route_genid": "1",
589
+ "net.inet6.icmp6.rediraccept": "1",
590
+ "net.inet.ip.fw.static_count": "1",
591
+ "net.inet6.ip6.fw.debug": "0",
592
+ "net.inet.udp.pcbcount": "104",
593
+ "net.inet.ipsec.esp_randpad": "-1",
594
+ "net.inet6.icmp6.nd6_maxnudhint": "0",
595
+ "net.inet.tcp.always_keepalive": "0",
596
+ "net.inet.udp.checksum": "1",
597
+ "net.link.ether.inet.keep_announcements": "1",
598
+ "net.athfixedDropThresh": "150 150",
599
+ "net.inet6.ip6.kame_version": "20010528\/apple-darwin",
600
+ "net.inet.ip.fw.dyn_max": "4096",
601
+ "net.inet.udp.log_in_vain": "0",
602
+ "net.inet6.icmp6.nd6_mmaxtries": "3",
603
+ "net.inet.ip.rtminexpire": "10",
604
+ "net.inet.ip.fw.dyn_buckets": "256",
605
+ "net.inet6.ip6.accept_rtadv": "0",
606
+ "net.inet6.ip6.rr_prune": "5",
607
+ "net.key.ah_keymin": "128",
608
+ "net.inet.ip.redirect": "1",
609
+ "net.inet.tcp.sack_globalmaxholes": "65536",
610
+ "net.inet.ip.keepfaith": "0",
611
+ "net.inet.ip.dummynet.expire": "1",
612
+ "net.inet.ip.gifttl": "30",
613
+ "net.inet.ip.portrange.last": "65535",
614
+ "net.inet.ipsec.ah_net_deflev": "1",
615
+ "net.inet6.icmp6.nd6_delay": "5",
616
+ "net.inet.tcp.packetchain": "50",
617
+ "net.inet6.ip6.hdrnestlimit": "50",
618
+ "net.inet.tcp.newreno": "0",
619
+ "net.inet6.ip6.dad_count": "1",
620
+ "net.inet6.ip6.auto_linklocal": "1",
621
+ "net.inet6.ip6.temppltime": "86400",
622
+ "net.inet.tcp.strict_rfc1948": "0",
623
+ "net.athdupie": "1 1",
624
+ "net.inet.ip.dummynet.red_max_pkt_size": "1500",
625
+ "net.inet.ip.maxfrags": "2048",
626
+ "net.inet.tcp.log_in_vain": "0",
627
+ "net.inet.tcp.rfc1323": "1",
628
+ "net.inet.ip.subnets_are_local": "0",
629
+ "net.inet.ip.dummynet.search_steps": "0",
630
+ "net.inet.icmp.icmplim": "250",
631
+ "net.link.ether.inet.apple_hwcksum_tx": "1",
632
+ "net.inet6.icmp6.redirtimeout": "600",
633
+ "net.inet.ipsec.ah_cleartos": "1",
634
+ "net.inet6.ip6.log_interval": "5",
635
+ "net.link.ether.inet.max_age": "1200",
636
+ "net.inet.ip.fw.enable": "1",
637
+ "net.inet6.ip6.redirect": "1",
638
+ "net.athaggrfmax": "28 28",
639
+ "net.inet.ip.maxfragsperpacket": "128",
640
+ "net.inet6.ip6.use_deprecated": "1",
641
+ "net.link.generic.system.dlil_input_sanity_check": "0",
642
+ "net.inet.tcp.sack_globalholes": "0",
643
+ "net.inet.tcp.reass.cursegments": "0",
644
+ "net.inet6.icmp6.nodeinfo": "3",
645
+ "net.local.inflight": "0",
646
+ "net.inet.ip.dummynet.hash_size": "64",
647
+ "net.inet.ip.dummynet.red_avg_pkt_size": "512",
648
+ "net.inet.ipsec.dfbit": "0",
649
+ "net.inet.tcp.reass.overflows": "0",
650
+ "net.inet.tcp.rexmt_thresh": "2",
651
+ "net.inet6.ip6.maxfrags": "8192",
652
+ "net.inet6.ip6.rtminexpire": "10",
653
+ "net.inet6.ipsec6.esp_net_deflev": "1",
654
+ "net.inet.tcp.blackhole": "0",
655
+ "net.key.esp_keymin": "256",
656
+ "net.inet.ip.check_interface": "0",
657
+ "net.inet.tcp.minmssoverload": "0",
658
+ "net.link.ether.inet.maxtries": "5",
659
+ "net.inet.tcp.do_tcpdrain": "0",
660
+ "net.inet.ipsec.esp_port": "4500",
661
+ "net.inet6.ipsec6.ah_net_deflev": "1",
662
+ "net.inet.ip.dummynet.extract_heap": "0",
663
+ "net.inet.tcp.path_mtu_discovery": "1",
664
+ "net.inet.ip.intr_queue_maxlen": "50",
665
+ "net.inet.ipsec.def_policy": "1",
666
+ "net.inet.ip.fw.autoinc_step": "100",
667
+ "net.inet.ip.accept_sourceroute": "0",
668
+ "net.inet.raw.maxdgram": "8192",
669
+ "net.inet.ip.maxfragpackets": "1024",
670
+ "net.inet.ip.fw.one_pass": "0",
671
+ "net.appletalk.routermix": "2000",
672
+ "net.inet.tcp.tcp_lq_overflow": "1",
673
+ "net.link.generic.system.ifcount": "9",
674
+ "net.link.ether.inet.send_conflicting_probes": "1",
675
+ "net.inet.tcp.background_io_enabled": "1",
676
+ "net.inet6.ipsec6.debug": "0",
677
+ "net.inet.tcp.win_scale_factor": "3",
678
+ "net.key.natt_keepalive_interval": "20",
679
+ "net.inet.tcp.msl": "15000",
680
+ "net.inet.ip.portrange.hifirst": "49152",
681
+ "net.inet.ipsec.ah_trans_deflev": "1",
682
+ "net.inet.tcp.rtt_min": "1",
683
+ "net.inet6.ip6.defmcasthlim": "1",
684
+ "net.inet6.icmp6.nd6_prune": "1",
685
+ "net.inet6.ip6.fw.verbose": "0",
686
+ "net.inet.ip.portrange.lowfirst": "1023",
687
+ "net.inet.tcp.maxseg_unacked": "8",
688
+ "net.local.dgram.maxdgram": "2048",
689
+ "net.key.blockacq_lifetime": "20",
690
+ "net.inet.tcp.sack_maxholes": "128",
691
+ "net.inet6.ip6.maxfragpackets": "1024",
692
+ "net.inet6.ip6.use_tempaddr": "0",
693
+ "net.athpowermode": "0 0",
694
+ "net.inet.udp.recvspace": "73728",
695
+ "net.inet.tcp.isn_reseed_interval": "0",
696
+ "net.inet.tcp.local_slowstart_flightsize": "8",
697
+ "net.inet.ip.dummynet.searches": "0",
698
+ "net.inet.ip.intr_queue_drops": "0",
699
+ "net.link.generic.system.multi_threaded_input": "1",
700
+ "net.inet.raw.recvspace": "8192",
701
+ "net.inet.ipsec.esp_trans_deflev": "1",
702
+ "net.key.prefered_oldsa": "0",
703
+ "net.local.stream.recvspace": "8192",
704
+ "net.inet.tcp.sockthreshold": "64",
705
+ "net.inet6.icmp6.nd6_umaxtries": "3",
706
+ "net.pstimeout": "20 20",
707
+ "net.inet.ip.sourceroute": "0",
708
+ "net.inet.ip.fw.dyn_short_lifetime": "5",
709
+ "net.inet.tcp.minmss": "216",
710
+ "net.inet6.ip6.gifhlim": "0",
711
+ "net.athvendorie": "1 1",
712
+ "net.inet.ip.check_route_selfref": "1",
713
+ "net.inet6.icmp6.errppslimit": "100",
714
+ "net.inet.tcp.mssdflt": "512",
715
+ "net.inet.icmp.log_redirect": "0",
716
+ "net.inet6.ipsec6.ah_trans_deflev": "1",
717
+ "net.inet6.ipsec6.esp_randpad": "-1",
718
+ "net.inet.icmp.drop_redirect": "0",
719
+ "net.inet.icmp.timestamp": "0",
720
+ "net.inet.ip.random_id": "1"
721
+ },
722
+ "interfaces": {
723
+ "vmnet1": {
724
+ "flags": [
725
+ "UP",
726
+ "BROADCAST",
727
+ "SMART",
728
+ "RUNNING",
729
+ "SIMPLEX",
730
+ "MULTICAST"
731
+ ],
732
+ "addresses": [
733
+ {
734
+ "broadcast": "192.168.88.255",
735
+ "netmask": "255.255.255.0",
736
+ "family": "inet",
737
+ "address": "192.168.88.1"
738
+ },
739
+ {
740
+ "family": "lladdr",
741
+ "address": "private"
742
+ }
743
+ ],
744
+ "number": "1",
745
+ "mtu": "1500",
746
+ "type": "vmnet",
747
+ "encapsulation": "Ethernet"
748
+ },
749
+ "stf0": {
750
+ "flags": [
751
+
752
+ ],
753
+ "number": "0",
754
+ "mtu": "1280",
755
+ "type": "stf",
756
+ "encapsulation": "6to4"
757
+ },
758
+ "vboxnet0": {
759
+ "flags": [
760
+ "BROADCAST",
761
+ "RUNNING",
762
+ "SIMPLEX",
763
+ "MULTICAST"
764
+ ],
765
+ "addresses": [
766
+ {
767
+ "family": "lladdr",
768
+ "address": "private"
769
+ }
770
+ ],
771
+ "number": "0",
772
+ "mtu": "1500",
773
+ "type": "vboxnet",
774
+ "encapsulation": "Ethernet"
775
+ },
776
+ "lo0": {
777
+ "flags": [
778
+ "UP",
779
+ "LOOPBACK",
780
+ "RUNNING",
781
+ "MULTICAST"
782
+ ],
783
+ "addresses": [
784
+ {
785
+ "scope": "Link",
786
+ "prefixlen": "64",
787
+ "family": "inet6",
788
+ "address": "fe80::1"
789
+ },
790
+ {
791
+ "netmask": "255.0.0.0",
792
+ "family": "inet",
793
+ "address": "127.0.0.1"
794
+ },
795
+ {
796
+ "scope": "Node",
797
+ "prefixlen": "128",
798
+ "family": "inet6",
799
+ "address": "::1"
800
+ },
801
+ {
802
+ "scope": "Node",
803
+ "prefixlen": "128",
804
+ "family": "inet6",
805
+ "address": "private"
806
+ }
807
+ ],
808
+ "number": "0",
809
+ "mtu": "16384",
810
+ "type": "lo",
811
+ "encapsulation": "Loopback"
812
+ },
813
+ "vboxn": {
814
+ "counters": {
815
+ "tx": {
816
+ "bytes": "0",
817
+ "packets": "0",
818
+ "collisions": "0",
819
+ "compressed": 0,
820
+ "carrier": 0,
821
+ "drop": 0,
822
+ "errors": "0",
823
+ "overrun": 0
824
+ },
825
+ "rx": {
826
+ "bytes": "0",
827
+ "packets": "0",
828
+ "compressed": 0,
829
+ "drop": 0,
830
+ "errors": "0",
831
+ "overrun": 0,
832
+ "frame": 0,
833
+ "multicast": 0
834
+ }
835
+ }
836
+ },
837
+ "gif0": {
838
+ "flags": [
839
+ "POINTOPOINT",
840
+ "MULTICAST"
841
+ ],
842
+ "number": "0",
843
+ "mtu": "1280",
844
+ "type": "gif",
845
+ "encapsulation": "IPIP"
846
+ },
847
+ "vmnet": {
848
+ "counters": {
849
+ "tx": {
850
+ "bytes": "0",
851
+ "packets": "0",
852
+ "collisions": "0",
853
+ "compressed": 0,
854
+ "carrier": 0,
855
+ "drop": 0,
856
+ "errors": "0",
857
+ "overrun": 0
858
+ },
859
+ "rx": {
860
+ "bytes": "0",
861
+ "packets": "0",
862
+ "compressed": 0,
863
+ "drop": 0,
864
+ "errors": "0",
865
+ "overrun": 0,
866
+ "frame": 0,
867
+ "multicast": 0
868
+ }
869
+ }
870
+ },
871
+ "vmnet8": {
872
+ "flags": [
873
+ "UP",
874
+ "BROADCAST",
875
+ "SMART",
876
+ "RUNNING",
877
+ "SIMPLEX",
878
+ "MULTICAST"
879
+ ],
880
+ "addresses": [
881
+ {
882
+ "broadcast": "192.168.237.255",
883
+ "netmask": "255.255.255.0",
884
+ "family": "inet",
885
+ "address": "192.168.237.1"
886
+ },
887
+ {
888
+ "family": "lladdr",
889
+ "address": "private"
890
+ }
891
+ ],
892
+ "number": "8",
893
+ "mtu": "1500",
894
+ "type": "vmnet",
895
+ "encapsulation": "Ethernet"
896
+ },
897
+ "en0": {
898
+ "status": "inactive",
899
+ "flags": [
900
+ "UP",
901
+ "BROADCAST",
902
+ "SMART",
903
+ "RUNNING",
904
+ "SIMPLEX",
905
+ "MULTICAST"
906
+ ],
907
+ "addresses": [
908
+ {
909
+ "family": "lladdr",
910
+ "address": "private"
911
+ }
912
+ ],
913
+ "number": "0",
914
+ "mtu": "1500",
915
+ "media": {
916
+ "supported": [
917
+ {
918
+ "autoselect": {
919
+ "options": [
920
+
921
+ ]
922
+ }
923
+ },
924
+ {
925
+ "10baseT\/UTP": {
926
+ "options": [
927
+ "half-duplex"
928
+ ]
929
+ }
930
+ },
931
+ {
932
+ "10baseT\/UTP": {
933
+ "options": [
934
+ "full-duplex"
935
+ ]
936
+ }
937
+ },
938
+ {
939
+ "10baseT\/UTP": {
940
+ "options": [
941
+ "full-duplex",
942
+ "hw-loopback"
943
+ ]
944
+ }
945
+ },
946
+ {
947
+ "10baseT\/UTP": {
948
+ "options": [
949
+ "full-duplex",
950
+ "flow-control"
951
+ ]
952
+ }
953
+ },
954
+ {
955
+ "100baseTX": {
956
+ "options": [
957
+ "half-duplex"
958
+ ]
959
+ }
960
+ },
961
+ {
962
+ "100baseTX": {
963
+ "options": [
964
+ "full-duplex"
965
+ ]
966
+ }
967
+ },
968
+ {
969
+ "100baseTX": {
970
+ "options": [
971
+ "full-duplex",
972
+ "hw-loopback"
973
+ ]
974
+ }
975
+ },
976
+ {
977
+ "100baseTX": {
978
+ "options": [
979
+ "full-duplex",
980
+ "flow-control"
981
+ ]
982
+ }
983
+ },
984
+ {
985
+ "1000baseT": {
986
+ "options": [
987
+ "full-duplex"
988
+ ]
989
+ }
990
+ },
991
+ {
992
+ "1000baseT": {
993
+ "options": [
994
+ "full-duplex",
995
+ "hw-loopback"
996
+ ]
997
+ }
998
+ },
999
+ {
1000
+ "1000baseT": {
1001
+ "options": [
1002
+ "full-duplex",
1003
+ "flow-control"
1004
+ ]
1005
+ }
1006
+ },
1007
+ {
1008
+ "none": {
1009
+ "options": [
1010
+
1011
+ ]
1012
+ }
1013
+ }
1014
+ ],
1015
+ "selected": [
1016
+ {
1017
+ "autoselect": {
1018
+ "options": [
1019
+
1020
+ ]
1021
+ }
1022
+ }
1023
+ ]
1024
+ },
1025
+ "type": "en",
1026
+ "counters": {
1027
+ "tx": {
1028
+ "bytes": "342",
1029
+ "packets": "0",
1030
+ "collisions": "0",
1031
+ "compressed": 0,
1032
+ "carrier": 0,
1033
+ "drop": 0,
1034
+ "errors": "0",
1035
+ "overrun": 0
1036
+ },
1037
+ "rx": {
1038
+ "bytes": "0",
1039
+ "packets": "0",
1040
+ "compressed": 0,
1041
+ "drop": 0,
1042
+ "errors": "0",
1043
+ "overrun": 0,
1044
+ "frame": 0,
1045
+ "multicast": 0
1046
+ }
1047
+ },
1048
+ "encapsulation": "Ethernet"
1049
+ },
1050
+ "en1": {
1051
+ "status": "active",
1052
+ "flags": [
1053
+ "UP",
1054
+ "BROADCAST",
1055
+ "SMART",
1056
+ "RUNNING",
1057
+ "SIMPLEX",
1058
+ "MULTICAST"
1059
+ ],
1060
+ "addresses": [
1061
+ {
1062
+ "scope": "Link",
1063
+ "prefixlen": "64",
1064
+ "family": "inet6",
1065
+ "address": "private"
1066
+ },
1067
+ {
1068
+ "broadcast": "192.168.1.255",
1069
+ "netmask": "255.255.255.0",
1070
+ "family": "inet",
1071
+ "address": "192.168.1.4"
1072
+ },
1073
+ {
1074
+ "family": "lladdr",
1075
+ "address": "private"
1076
+ }
1077
+ ],
1078
+ "number": "1",
1079
+ "mtu": "1500",
1080
+ "media": {
1081
+ "supported": [
1082
+ {
1083
+ "autoselect": {
1084
+ "options": [
1085
+
1086
+ ]
1087
+ }
1088
+ }
1089
+ ],
1090
+ "selected": [
1091
+ {
1092
+ "autoselect": {
1093
+ "options": [
1094
+
1095
+ ]
1096
+ }
1097
+ }
1098
+ ]
1099
+ },
1100
+ "type": "en",
1101
+ "counters": {
1102
+ "tx": {
1103
+ "bytes": "449206298",
1104
+ "packets": "7041789",
1105
+ "collisions": "0",
1106
+ "compressed": 0,
1107
+ "carrier": 0,
1108
+ "drop": 0,
1109
+ "errors": "95",
1110
+ "overrun": 0
1111
+ },
1112
+ "rx": {
1113
+ "bytes": "13673879120",
1114
+ "packets": "19966002",
1115
+ "compressed": 0,
1116
+ "drop": 0,
1117
+ "errors": "1655893",
1118
+ "overrun": 0,
1119
+ "frame": 0,
1120
+ "multicast": 0
1121
+ }
1122
+ },
1123
+ "arp": {
1124
+ "192.168.1.7": "private"
1125
+ },
1126
+ "encapsulation": "Ethernet"
1127
+ },
1128
+ "fw0": {
1129
+ "status": "inactive",
1130
+ "flags": [
1131
+ "UP",
1132
+ "BROADCAST",
1133
+ "SMART",
1134
+ "RUNNING",
1135
+ "SIMPLEX",
1136
+ "MULTICAST"
1137
+ ],
1138
+ "addresses": [
1139
+ {
1140
+ "family": "lladdr",
1141
+ "address": "private"
1142
+ }
1143
+ ],
1144
+ "number": "0",
1145
+ "mtu": "4078",
1146
+ "media": {
1147
+ "supported": [
1148
+ {
1149
+ "autoselect": {
1150
+ "options": [
1151
+ "full-duplex"
1152
+ ]
1153
+ }
1154
+ }
1155
+ ],
1156
+ "selected": [
1157
+ {
1158
+ "autoselect": {
1159
+ "options": [
1160
+ "full-duplex"
1161
+ ]
1162
+ }
1163
+ }
1164
+ ]
1165
+ },
1166
+ "type": "fw",
1167
+ "counters": {
1168
+ "tx": {
1169
+ "bytes": "346",
1170
+ "packets": "0",
1171
+ "collisions": "0",
1172
+ "compressed": 0,
1173
+ "carrier": 0,
1174
+ "drop": 0,
1175
+ "errors": "0",
1176
+ "overrun": 0
1177
+ },
1178
+ "rx": {
1179
+ "bytes": "0",
1180
+ "packets": "0",
1181
+ "compressed": 0,
1182
+ "drop": 0,
1183
+ "errors": "0",
1184
+ "overrun": 0,
1185
+ "frame": 0,
1186
+ "multicast": 0
1187
+ }
1188
+ },
1189
+ "encapsulation": "1394"
1190
+ }
1191
+ }
1192
+ },
1193
+ "fqdn": "local.local",
1194
+ "ohai_time": 1240624355.08575,
1195
+ "domain": "local",
1196
+ "os": "darwin",
1197
+ "platform_build": "9G55",
1198
+ "os_version": "9.6.0",
1199
+ "hostname": "local",
1200
+ "macaddress": "private",
1201
+ "languages": {
1202
+ "ruby": {
1203
+ "target_os": "darwin9.0",
1204
+ "platform": "universal-darwin9.0",
1205
+ "host_vendor": "apple",
1206
+ "target_vendor": "apple",
1207
+ "target_cpu": "i686",
1208
+ "host_os": "darwin9.0",
1209
+ "host_cpu": "i686",
1210
+ "version": "1.8.6",
1211
+ "host": "i686-apple-darwin9.0",
1212
+ "target": "i686-apple-darwin9.0",
1213
+ "release_date": "2008-03-03"
1214
+ }
1215
+ }
1216
+ }