2
我試圖運行基準測試和性能測試,我沒有得到顯示指標...的Rails 3.0.12性能測試等問題
紅寶石-v:
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]
RVM清單:
=> ruby-1.9.2-p320-perf [ x86_64 ]
運行rake test:profile
的結果:
BrowsingTest#test_homepage (130 ms warmup)
process_time: 18446744073.71 sec
memory: unsupported
objects: unsupported
BrowsingTest#test_intel_companies_newstats (34 ms warmup)
process_time: 26 ms
memory: unsupported
objects: unsupported
和運行rake test:benchmark
BrowsingTest#test_homepage (103 ms warmup)
wall_time: 23 ms
memory: 0.00 KB
objects: 0
gc_runs: 0
gc_time: 0.00 ms
BrowsingTest#test_intel_companies_newstats (31 ms warmup)
wall_time: 9 ms
memory: 0.00 KB
objects: 0
gc_runs: 0
gc_time: 0.00 ms
我的寶石文件
group :test do
gem 'capybara'
# for performance tests
gem 'ruby-prof', :git => 'git://github.com/wycats/ruby-prof.git'
gem 'test-unit'
end
當我試圖運行:
rvm install 1.9.2 --patch gcdata --name perf
我:
Installing Ruby from source to: /home/victor/.rvm/rubies/ruby-1.9.2-p320-perf, this may take a while depending on your cpu(s)...
ruby-1.9.2-p320-perf - #fetching
ruby-1.9.2-p320-perf - #extracting ruby-1.9.2-p320 to /home/victor/.rvm/src/ruby-1.9.2-p320-perf
ruby-1.9.2-p320-perf - #extracted to /home/victor/.rvm/src/ruby-1.9.2-p320-perf
Patch 'gcdata' not found.
任何一個可能如何確定補丁是否可用的Ruby版本,他們使用的想法? – DarinH
我使用了rails guide:http://guides.rubyonrails.org/v3.2.13/performance_testing.html#installing-gc-patched-mri你也可以看看https://github.com/skaes/rvm-patchsets – Machine