benchmarking - Rails 3.2.21 and Ruby 2.0 Performance Test Issues -
running rails performance test unsupported memory , objects in output. ruby 1.9x 1 can install gcdata patch. however, can't figure out how install ruby 2.0.
when run:
bundle exec rake test:benchmark rails_env=test
i get:
browsingtest#test_homepage (247 ms warmup) wall_time: 3 ms memory: unsupported objects: unsupported gc_runs: 0 gc_time: 0 ms = 1.42 sfinished tests in 1.500688s, 0.6664 tests/s, 0.0000 assertions/s. 1 tests, 0 assertions, 0 failures, 0 errors, 0 skips
i have rails 3.2.21 , ruby 2.0:
ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-darwin14.1.0]
the gcdata patch available latest version of 1.9.3. there no gcdata patch ruby >= 2.0.0. in opinion, have 2 options issue:
keep branch of application running patched version of rails 1.9.3, , run tests there. downside results may not 100% accurate , if use ruby 2 syntax branch break.
find way test memory usage , created objects, or don't use option @ new application. news ruby 2+ handles garbage collection better , should not run out of memory (unless interested number comparison app).
Comments
Post a Comment