To edit pages or tickets please login with username/password: aaf/aaf

Changeset 274

Show
Ignore:
Timestamp:
11/17/07 21:45:59 (1 year ago)
Author:
jk
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/db/migrate/006_create_stats.rb

    r272 r274  
    1010 
    1111  def self.down 
    12     remove_index :stats, 'kind' 
     12 #   remove_index :stats, 'kind' 
    1313    drop_table :stats 
    1414  end 
  • trunk/demo/test/smoke/drb_smoke_test.rb

    r273 r274  
    1010module DrbSmokeTest 
    1111 
    12   RECORDS_PER_PROCESS = 1000 
     12  RECORDS_PER_PROCESS = 10000 
    1313  NUM_PROCESSES       = 10 # should be an even number 
    14   NUM_RECORDS_PER_LOGENTRY = 10 
    15   NUM_DOCS = 10
     14  NUM_RECORDS_PER_LOGENTRY = 100 
     15  NUM_DOCS = 5
    1616  NUM_TERMS = 1000 
    1717 
     
    9797          Content.create! :title => "record #{@id} / #{i}", :description => DrbSmokeTest::random_document 
    9898        end 
     99        sleep 0.1 
    99100        if i % NUM_RECORDS_PER_LOGENTRY == 0 
    100101          # write stats 
     
    103104                        :processing_time => @time * TIME_FACTOR,        # average processing time per record in this batch 
    104105                        :open_connections => Monitor::count_connections 
     106          @time = 0 
    105107        end 
    106108      end 

To edit pages or tickets please login with username/password: aaf/aaf