Sha256: c3ef2d648a438842a0118931a731a4f9a9297f69fcd6a1f7f3834a37751aa3a1
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) require 'helpers/unit_test_helper' require 'ruby-prof' require 'perftools' class ToAMFTest < ActiveRecord::TestCase fixtures :users def test_to_amf_sanity assert_nothing_raised { users(:user_1).to_amf } end def test_ruby_profile_all_to_amf ruby_profile { users.to_amf } end def test_perftools_all_to_amf PerfTools::CpuProfiler.start("/tmp/to_amf") { users.to_amf } end private def ruby_profile RubyProf.start yield result = RubyProf.stop printer = RubyProf::GraphPrinter.new(result) printer.print(STDOUT, 0) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restfulx-1.3.1 | test/rails/test_to_amf.rb |
restfulx-1.3.0 | test/rails/test_to_amf.rb |