Last active
December 28, 2015 20:29
-
-
Save teohm/7557811 to your computer and use it in GitHub Desktop.
http://fredwu.me/post/60441991350/protip-ruby-devs-please-tweak-your-gc-settings-for
http://labs.goclio.com/tuning-ruby-garbage-collection-for-rspec/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 12.5 seconds | |
59 examples, 0 failures | |
real 0m19.849s | |
user 0m14.280s | |
sys 0m1.425s | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 12.28 seconds | |
59 examples, 0 failures | |
real 0m15.522s | |
user 0m14.141s | |
sys 0m1.347s | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 12.98 seconds | |
59 examples, 0 failures | |
real 0m16.243s | |
user 0m14.746s | |
sys 0m1.415s | |
huiming@mars:natives (master=)$ export RUBY_HEAP_MIN_SLOTS=2000000 | |
huiming@mars:natives (master=)$ export RUBY_HEAP_FREE_MIN=20000 | |
huiming@mars:natives (master=)$ export RUBY_GC_MALLOC_LIMIT=100000000 | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 13.25 seconds | |
59 examples, 0 failures | |
real 0m16.873s | |
user 0m14.742s | |
sys 0m2.055s | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 13.27 seconds | |
59 examples, 0 failures | |
real 0m16.779s | |
user 0m14.653s | |
sys 0m2.060s | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 13.62 seconds | |
59 examples, 0 failures | |
real 0m17.129s | |
user 0m14.964s | |
sys 0m2.102s | |
huiming@mars:natives (master=)$ export RUBY_GC_MALLOC_LIMIT=90000000 | |
huiming@mars:natives (master=)$ export RUBY_FREE_MIN=200000 | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 13.68 seconds | |
59 examples, 0 failures | |
real 0m17.577s | |
user 0m15.340s | |
sys 0m2.135s | |
huiming@mars:natives (master=)$ time be rake | |
/Users/huiming/.rubies/ruby-1.9.3-p429/bin/ruby -S rspec spec/natives/apps/detect_spec.rb spec/natives/apps/list_spec.rb spec/natives/catalog/loader_spec.rb spec/natives/catalog/merger_spec.rb spec/natives/catalog/normalizer_spec.rb spec/natives/catalog/selector_spec.rb spec/natives/catalog/validator_spec.rb spec/natives/catalog_spec.rb spec/natives/gemfile_viewer_spec.rb spec/natives/host_detection/package_provider_spec.rb spec/natives/host_detection/platform_spec.rb spec/natives/host_detection_spec.rb | |
........................................................... | |
Finished in 13.29 seconds | |
59 examples, 0 failures | |
real 0m16.888s | |
user 0m14.745s | |
sys 0m2.084s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment