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