Sha256: 7f3c3cbb1931d7f41048f790c5fbe86ebb95622150cb8f8cb20c0ec7dc867542

Contents?: true

Size: 998 Bytes

Versions: 9

Compression:

Stored size: 998 Bytes

Contents

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

describe "Rhoconnect Performance" do
  it_behaves_like "SharedRhoconnectHelper", :rhoconnect_data => false do
    it "should process get/put for 1000 records (6000 elements)" do
      @data = get_test_data(1000)
      start = start_timer
      Store.put_data('mdoc',@data).should == true
      start = lap_timer('put_data duration',start)
      Store.get_data('mdoc').should == @data
      lap_timer('get_data duration',start)
    end

    it "should process single attribute update 1000-record doc" do
      @data = get_test_data(1000)
      @data1 = get_test_data(1000)
      @data1['950']['Phone1'] = 'This is changed'
      expected = {'950' => {'Phone1' => 'This is changed'}}
      Store.put_data('mdoc',@data).should == true
      Store.put_data('cdoc',@data1).should == true
      start = start_timer
      Store.get_diff_data('mdoc','cdoc').should == expected
      lap_timer('get_diff_data duration', start)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rhoconnect-3.3.6 spec/perf/store_perf_spec.rb
rhoconnect-3.3.5 spec/perf/store_perf_spec.rb
rhoconnect-3.3.4 spec/perf/store_perf_spec.rb
rhoconnect-3.3.3 spec/perf/store_perf_spec.rb
rhoconnect-3.3.2 spec/perf/store_perf_spec.rb
rhoconnect-3.3.1 spec/perf/store_perf_spec.rb
rhoconnect-3.3.1.beta4 spec/perf/store_perf_spec.rb
rhoconnect-3.3.1.beta3 spec/perf/store_perf_spec.rb
rhoconnect-3.3.1.beta2 spec/perf/store_perf_spec.rb