Sha256: db15abf551a62ae6e6b769508a9738fb1a7be5e9d901e2efda71797f8d383232

Contents?: true

Size: 1002 Bytes

Versions: 22

Compression:

Stored size: 1002 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,1]
      lap_timer('get_diff_data duration', start)
    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0.beta5 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0.beta4 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0.beta3 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0.beta2 spec/perf/store_perf_spec.rb
rhoconnect-3.2.0.beta1 spec/perf/store_perf_spec.rb
rhoconnect-3.1.2 spec/perf/store_perf_spec.rb
rhoconnect-3.1.1 spec/perf/store_perf_spec.rb
rhoconnect-3.1.0 spec/perf/store_perf_spec.rb
rhoconnect-3.1.0.beta2 spec/perf/store_perf_spec.rb
rhoconnect-3.1.0.beta1 spec/perf/store_perf_spec.rb
rhoconnect-3.0.6 spec/perf/store_perf_spec.rb
rhoconnect-3.0.5 spec/perf/store_perf_spec.rb
rhoconnect-3.0.4 spec/perf/store_perf_spec.rb
rhoconnect-3.0.3 spec/perf/store_perf_spec.rb
rhoconnect-3.0.2 spec/perf/store_perf_spec.rb
rhoconnect-3.0.1 spec/perf/store_perf_spec.rb
rhoconnect-3.0.0 spec/perf/store_perf_spec.rb
rhoconnect-3.0.0.rc1 spec/perf/store_perf_spec.rb