Permalink
Browse files

Merge branch 'master' of git@github.com:acangiano/ruby-benchmark-suite

  • Loading branch information...
githubsvnclone committed May 18, 2010
2 parents 1a63ca4 + b196df1 commit c584d9049764f751682c74bd066c15b0399bf53d
Showing with 24,181 additions and 373 deletions.
  1. 0 benchmarks/{macro-benchmarks → micro-benchmarks}/bm_cal.rb
  2. 0 benchmarks/{macro-benchmarks → micro-benchmarks}/bm_dirp.rb
  3. +27 −0 benchmarks/micro-benchmarks/bm_ffi_printf.rb
  4. 0 benchmarks/{macro-benchmarks → micro-benchmarks}/bm_list.rb
  5. 0 benchmarks/{macro-benchmarks → micro-benchmarks}/bm_observ.rb
  6. 0 benchmarks/{macro-benchmarks → micro-benchmarks}/bm_pi.rb
  7. +1 −7 benchmarks/rails/TODO_LOW_PRIORITY
  8. +2 −2 benchmarks/rails/{bm_substruct_request_root_30x.rb → bm_substruct_request_root.rb}
  9. +7 −0 benchmarks/rails/bm_substruct_request_root_same_session.rb
  10. +0 −7 benchmarks/rails/bm_substruct_request_root_same_session_30x.rb
  11. +11 −0 benchmarks/rails/bm_substruct_request_root_with_larger_app_size.rb
  12. +17 −0 benchmarks/rails/bm_substruct_test_all.rb
  13. BIN benchmarks/rails/substruct/bin/sqlite3.dll
  14. +7 −0 benchmarks/rails/substruct/config/boot.rb
  15. +4 −3 benchmarks/rails/substruct/config/database.yml
  16. +2 −2 benchmarks/rails/substruct/config/environment.rb
  17. +303 −301 benchmarks/rails/substruct/db/schema.rb
  18. +3 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/COPYING
  19. +7 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/MIT-LICENSE
  20. +39 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/README
  21. +294 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/RELEASE
  22. +214 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/Rakefile
  23. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/examples/misc.rb
  24. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/examples/mocha.rb
  25. +64 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/examples/stubba.rb
  26. +3 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha.rb
  27. +59 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/any_instance_method.rb
  28. +173 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/api.rb
  29. +21 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/argument_iterator.rb
  30. +17 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/backtrace_filter.rb
  31. +95 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/cardinality.rb
  32. +27 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/central.rb
  33. +19 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/change_state_side_effect.rb
  34. +91 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/class_method.rb
  35. +79 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/configuration.rb
  36. +22 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/deprecation.rb
  37. +17 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/exception_raiser.rb
  38. +476 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/expectation.rb
  39. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/expectation_error.rb
  40. +50 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/expectation_list.rb
  41. +19 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/in_state_ordering_constraint.rb
  42. +67 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/inspect.rb
  43. +16 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/instance_method.rb
  44. +38 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration.rb
  45. +21 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/mini_test.rb
  46. +23 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/mini_test/assertion_counter.rb
  47. +50 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb
  48. +40 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit.rb
  49. +23 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit/assertion_counter.rb
  50. +49 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit/gem_version_200.rb
  51. +49 −0 ...arks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit/gem_version_201_and_above.rb
  52. +48 −0 ...rks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_185_and_below.rb
  53. +50 −0 ...rks/rails/substruct/lib/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb
  54. +9 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/is_a.rb
  55. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/logger.rb
  56. +13 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/metaclass.rb
  57. +21 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/method_matcher.rb
  58. +200 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/mock.rb
  59. +181 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/mockery.rb
  60. +16 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/module_method.rb
  61. +20 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/multiple_yields.rb
  62. +53 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/names.rb
  63. +11 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/no_yields.rb
  64. +187 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/object.rb
  65. +27 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers.rb
  66. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/all_of.rb
  67. +47 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/any_of.rb
  68. +40 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/any_parameters.rb
  69. +33 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/anything.rb
  70. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/base.rb
  71. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/equals.rb
  72. +45 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/has_entries.rb
  73. +57 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/has_entry.rb
  74. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/has_key.rb
  75. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/has_value.rb
  76. +41 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/includes.rb
  77. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/instance_of.rb
  78. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/is_a.rb
  79. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/kind_of.rb
  80. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/not.rb
  81. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/object.rb
  82. +55 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/optionally.rb
  83. +44 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/regexp_matches.rb
  84. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/responds_with.rb
  85. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameter_matchers/yaml_equivalent.rb
  86. +37 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/parameters_matcher.rb
  87. +28 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/pretty_parameters.rb
  88. +31 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/return_values.rb
  89. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/sequence.rb
  90. +17 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/single_return_value.rb
  91. +18 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/single_yield.rb
  92. +1 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/standalone.rb
  93. +91 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/state_machine.rb
  94. +16 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/stubbing_error.rb
  95. +18 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/unexpected_invocation.rb
  96. +31 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha/yield_parameters.rb
  97. +2 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/mocha_standalone.rb
  98. +4 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/lib/stubba.rb
  99. +38 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/acceptance_test_helper.rb
  100. +139 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/api_test.rb
  101. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/bug_18914_test.rb
  102. +34 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/bug_21465_test.rb
  103. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/bug_21563_test.rb
  104. +196 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/expected_invocation_count_test.rb
  105. +64 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/failure_messages_test.rb
  106. +153 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/minitest_test.rb
  107. +98 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/mocha_example_test.rb
  108. +84 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/mocha_test_result_test.rb
  109. +100 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/mock_test.rb
  110. +51 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/mock_with_initializer_block_test.rb
  111. +78 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/mocked_methods_dispatch_test.rb
  112. +70 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/optional_parameters_test.rb
  113. +209 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/parameter_matcher_test.rb
  114. +47 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/partial_mocks_test.rb
  115. +52 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/return_value_test.rb
  116. +186 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/sequence_test.rb
  117. +70 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/states_test.rb
  118. +195 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_any_instance_method_test.rb
  119. +203 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_class_method_test.rb
  120. +56 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_everything_test.rb
  121. +203 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_instance_method_test.rb
  122. +163 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_module_method_test.rb
  123. +52 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stub_test.rb
  124. +102 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubba_example_test.rb
  125. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubba_test.rb
  126. +66 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubba_test_result_test.rb
  127. +64 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_error_backtrace_test.rb
  128. +65 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_method_unnecessarily_test.rb
  129. +130 −0 ...rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_existent_any_instance_method_test.rb
  130. +157 −0 ...hmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_existent_class_method_test.rb
  131. +147 −0 ...rks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_existent_instance_method_test.rb
  132. +130 −0 ...s/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_public_any_instance_method_test.rb
  133. +163 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_public_class_method_test.rb
  134. +143 −0 ...marks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_non_public_instance_method_test.rb
  135. +64 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/acceptance/stubbing_on_non_mock_object_test.rb
  136. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/deprecation_disabler.rb
  137. +36 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/execution_point.rb
  138. +24 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/method_definer.rb
  139. +13 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/simple_counter.rb
  140. +15 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/test_helper.rb
  141. +33 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/test_runner.rb
  142. +126 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/any_instance_method_test.rb
  143. +16 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/array_inspect_test.rb
  144. +19 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/backtrace_filter_test.rb
  145. +56 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/cardinality_test.rb
  146. +65 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/central_test.rb
  147. +41 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/change_state_side_effect_test.rb
  148. +237 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/class_method_test.rb
  149. +38 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/configuration_test.rb
  150. +21 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/date_time_inspect_test.rb
  151. +42 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/exception_raiser_test.rb
  152. +57 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/expectation_list_test.rb
  153. +480 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/expectation_test.rb
  154. +16 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/hash_inspect_test.rb
  155. +43 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/in_state_ordering_constraint_test.rb
  156. +22 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/metaclass_test.rb
  157. +23 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/method_matcher_test.rb
  158. +302 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/mock_test.rb
  159. +149 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/mockery_test.rb
  160. +18 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/multiple_yields_test.rb
  161. +18 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/no_yields_test.rb
  162. +37 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/object_inspect_test.rb
  163. +82 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/object_test.rb
  164. +26 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/all_of_test.rb
  165. +26 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/any_of_test.rb
  166. +21 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/anything_test.rb
  167. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/equals_test.rb
  168. +51 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/has_entries_test.rb
  169. +82 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/has_entry_test.rb
  170. +55 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/has_key_test.rb
  171. +57 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/has_value_test.rb
  172. +44 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/includes_test.rb
  173. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/instance_of_test.rb
  174. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/is_a_test.rb
  175. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/kind_of_test.rb
  176. +26 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/not_test.rb
  177. +46 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/regexp_matches_test.rb
  178. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/responds_with_test.rb
  179. +27 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/stub_matcher.rb
  180. +25 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameter_matchers/yaml_equivalent_test.rb
  181. +121 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/parameters_matcher_test.rb
  182. +63 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/return_values_test.rb
  183. +104 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/sequence_test.rb
  184. +14 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/single_return_value_test.rb
  185. +18 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/single_yield_test.rb
  186. +98 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/state_machine_test.rb
  187. +11 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/string_inspect_test.rb
  188. +93 −0 benchmarks/rails/substruct/lib/mocha-0.9.8/test/unit/yield_parameters_test.rb
  189. +5 −0 benchmarks/rails/substruct/lib/os-0.7.2/.document
  190. +21 −0 benchmarks/rails/substruct/lib/os-0.7.2/.gitignore
  191. +38 −0 benchmarks/rails/substruct/lib/os-0.7.2/README.rdoc
  192. +47 −0 benchmarks/rails/substruct/lib/os-0.7.2/Rakefile
  193. +1 −0 benchmarks/rails/substruct/lib/os-0.7.2/VERSION
  194. +160 −0 benchmarks/rails/substruct/lib/os-0.7.2/lib/os.rb
  195. +110 −0 benchmarks/rails/substruct/lib/os-0.7.2/spec/spec.os.rb
  196. +88 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/ChangeLog.cvs
  197. +68 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/History.txt
  198. +27 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/LICENSE
  199. +41 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/Manifest.txt
  200. +56 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/README.txt
  201. +5 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/Rakefile
  202. +10 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/ext/sqlite3_api/extconf.rb
  203. +362 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/ext/sqlite3_api/sqlite3_api.i
  204. +5,018 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/ext/sqlite3_api/sqlite3_api_wrap.c
  205. +145 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/faq/faq.rb
  206. +426 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/faq/faq.yml
  207. BIN benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/1.8/sqlite3_api.so
  208. BIN benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/1.9/sqlite3_api.so
  209. +1 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3.rb
  210. +49 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/constants.rb
  211. +721 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/database.rb
  212. +152 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/driver/dl/api.rb
  213. +307 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/driver/dl/driver.rb
  214. +219 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/driver/native/driver.rb
  215. +68 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/errors.rb
  216. +271 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/pragmas.rb
  217. +180 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/resultset.rb
  218. +231 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/statement.rb
  219. +109 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/translator.rb
  220. +57 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/value.rb
  221. +16 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/version.rb
  222. +1,333 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/setup.rb
  223. +9 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/tasks/benchmark.rake
  224. +9 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/tasks/faq.rake
  225. +32 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/tasks/gem.rake
  226. +35 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/tasks/native.rake
  227. +104 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/tasks/vendor_sqlite3.rake
  228. +140 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/bm.rb
  229. +292 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/driver/dl/tc_driver.rb
  230. +67 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/helper.rb
  231. +126 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/native-vs-dl.rb
  232. +217 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_database.rb
  233. +17 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_errors.rb
  234. +542 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_integration.rb
  235. +30 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_integration_open_close.rb
  236. +111 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_integration_pending.rb
  237. +159 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_integration_resultset.rb
  238. +195 −0 benchmarks/rails/substruct/lib/sqlite3-ruby-1.2.5-x86-mingw32/test/test_integration_statement.rb
  239. +1 −1 benchmarks/rails/substruct/request_root_15x
  240. +1 −1 benchmarks/rails/substruct/test/test_helper.rb
  241. +2 −0 benchmarks/rails/substruct/vendor/plugins/request_profiler/lib/action_controller/request_profiler.rb
  242. +1 −1 benchmarks/rails/substruct/vendor/plugins/substruct/app/models/order.rb
  243. +1 −0 benchmarks/rails/substruct/vendor/plugins/substruct/app/models/order_account.rb
  244. +29 −27 benchmarks/rails/substruct/vendor/plugins/substruct/db/schema.rb
  245. +4 −3 benchmarks/rails/substruct/vendor/plugins/substruct/lib/substruct.rb
  246. +1 −1 benchmarks/rails/substruct/vendor/plugins/substruct/tasks/substruct.rake
  247. +5 −4 benchmarks/rails/substruct/vendor/plugins/substruct/test/test_helper.rb
  248. +5 −3 benchmarks/rails/substruct_start_and_bootstrap_if_necessary.rb
  249. +20 −5 rakelib/bench.rake
  250. +1 −1 utils/bench.rb
  251. +7 −0 utils/fake_bench.rb
  252. +7 −1 utils/monitor.rb
  253. +5 −3 utils/timeout2.rb
@@ -0,0 +1,27 @@
+begin
+ require 'ffi'
+rescue LoadError
+ require 'rubygems' # this for MRI 1.8
+ # of course, it's then not quite as fair a test, but reasonably close
+ require 'ffi'
+end
+
+module Hello
+ extend FFI::Library
+ # require right lib
+ require 'rbconfig'
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
+ ffi_lib 'msvcrt'
+ else
+ ffi_lib 'libc.so.6' # linux
+ end
+ attach_function 'printf', [:string, :varargs], :int
+
+end
+
+
+Bench.run [100000] do |n|
+ n.times do
+ Hello.printf("%s%s%s", :string, "", :string, "", :string, "")
+ end
+end
@@ -1,9 +1,3 @@
test with jruby
-add test using ab and multiple concurrency :)
-
-could also do more views than just the root [like an index with lots of products {"at least x"}, and many navigation tags]
-
-some requests with 'extra' RAM using garbage before the rails test
-
-some simple threaded socket tests
+add test using ab and multiple concurrency :)
@@ -2,6 +2,6 @@
ActionController::RequestProfiler.run(%w[-b -n1 request_root]) # warmup
-Bench.run [100] do
- ActionController::RequestProfiler.run(%w[-b -n30 request_root])
+Bench.run [90] do
+ ActionController::RequestProfiler.run(%w[-b -n90 request_root])
end
@@ -0,0 +1,7 @@
+require 'substruct_start_and_bootstrap_if_necessary.rb'
+
+ActionController::RequestProfiler.run(%w[-b -n1 request_root]) # warmup
+
+Bench.run [90] do
+ ActionController::RequestProfiler.run(%w[-b -n5 request_root_15x]) # runs it 6x15 times, one is for the warmup...
+end
@@ -1,7 +0,0 @@
-require 'substruct_start_and_bootstrap_if_necessary.rb'
-
-ActionController::RequestProfiler.run(%w[-b -n1 request_root]) # warmup
-
-Bench.run [100] do
- ActionController::RequestProfiler.run(%w[-b -n1 request_root_15x]) # runs it 2x15 times, one for warmup
-end
@@ -0,0 +1,11 @@
+require 'substruct_start_and_bootstrap_if_necessary.rb'
+
+# make bigger the app size
+GARBAGE = []
+30_000_000.times { GARBAGE << 3}
+
+ActionController::RequestProfiler.run(%w[-b -n1 request_root]) # warmup
+
+Bench.run [200] do |n|
+ ActionController::RequestProfiler.run(%w[-b -n200 request_root])
+end
@@ -0,0 +1,17 @@
+ENV['PLUGIN'] = 'substruct' # must be set early
+ENV['RAILS_ENV'] = 'test' # use this database
+
+DROP_DB_EACH_TIME = true
+require 'substruct_start_and_bootstrap_if_necessary.rb'
+
+start = Time.now
+begin
+ Rake::Task['test:plugins:all'].invoke
+rescue RuntimeError => e
+ raise unless e.to_s =~ /Command failed with status/ # this is ok
+end
+total_time = Time.now - start
+
+Bench.run [0.1] do
+ sleep total_time/10 # ughly, but cross platform
+end
Binary file not shown.
@@ -3,6 +3,13 @@
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+require RAILS_ROOT + '/lib/os-0.7.2/lib/os'
+
+if OS.windows? && !OS.iron_ruby?
+ ENV['PATH'] += ";bin"
+ $: << RAILS_ROOT + '/lib/sqlite3-ruby-1.2.5-x86-mingw32/lib' # sqlite3-ruby for MRI doze
+end
+
module Rails
class << self
def boot!
@@ -15,24 +15,25 @@
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
- adapter: mysql
+ adapter: sqlite3
encoding: utf8
database: substruct_rbs_development
+
username: root
password:
# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
- adapter: mysql
+ adapter: sqlite3
encoding: utf8
database: substruct_rbs_test
username: root
password:
production:
- adapter: mysql
+ adapter: sqlite3
encoding: utf8
database: substruct_rbs_production
username: root
@@ -59,8 +59,8 @@
# Include your application configuration below
require 'rubygems'
-gem 'RedCloth'
-gem 'fastercsv'
+#gem 'RedCloth'
+#gem 'fastercsv'
begin
Preference.init_mail_settings()
Oops, something went wrong.

0 comments on commit c584d90

Please sign in to comment.