Sha256: d593b001cae909bfc1f432b96a67d273f1a85ca2550065498f8d2f27e4e90acf

Contents?: true

Size: 1 KB

Versions: 38

Compression:

Stored size: 1 KB

Contents

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

describe "BulkData Performance" do
  it_should_behave_like "SourceAdapterHelper"
  it_should_behave_like "PerfSpecHelper"
  
  before(:each) do
    basedir = File.join(File.dirname(__FILE__),'..','apps','rhotestapp')
    Rhosync.bootstrap(basedir) do |rhosync|
      rhosync.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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
rhosync-2.1.16 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.15 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.14 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.13 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.12 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.11 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.10 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.7 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.6 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.3 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.2 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.1 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.0 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.0.beta.2 spec/perf/bulk_data_perf_spec.rb
rhosync-2.1.0.beta.1 spec/perf/bulk_data_perf_spec.rb
rhosync-2.0.9 spec/perf/bulk_data_perf_spec.rb
rhosync-2.0.8 spec/perf/bulk_data_perf_spec.rb
rhosync-2.0.7 spec/perf/bulk_data_perf_spec.rb
rhosync-2.0.6 spec/perf/bulk_data_perf_spec.rb
rhosync-2.0.5 spec/perf/bulk_data_perf_spec.rb