Sha256: d589cf9770b6e95beee4b4fb742bcfe2c626d18de8ada27b1bc0a2c771fb99de

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

require File.join(File.dirname(__FILE__),'perf_spec_helper')

describe "BulkData Performance" do
  it_behaves_like "SharedRhoconnectHelper", :rhoconnect_data => false do
    before(:each) do
      basedir = File.join(File.dirname(__FILE__),'..','apps','rhotestapp')
      Rhoconnect.bootstrap(basedir) do |rhoconnect|
        rhoconnect.vendor_directory = File.join(basedir,'..','vendor')
      end
    end

    after(:each) do
      delete_data_directory
    end

    it "should generate sqlite bulk data for 1000 objects (6000 attributes)" do
      start = start_timer
      @data = get_test_data(1000)
      start = lap_timer('generate data',start)
      set_state('test_db_storage' => @data)
      start = lap_timer('set_state masterdoc',start)
      data = BulkData.create(:name => bulk_data_docname(@a.id,@u.id),
        :state => :inprogress,
        :app_id => @a.id,
        :user_id => @u.id,
        :sources => [@s_fields[:name]])
      BulkDataJob.perform("data_name" => data.name)
      lap_timer('BulkDataJob.perform duration',start)
    end
  end  

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-3.1.2 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.1.1 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.1.0 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.1.0.beta2 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.1.0.beta1 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.6 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.5 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.4 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.3 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.2 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.1 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.0 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.0.rc1 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.0.beta3 spec/perf/bulk_data_perf_spec.rb
rhoconnect-3.0.0.beta1 spec/perf/bulk_data_perf_spec.rb