Changeset 274
- Timestamp:
- 11/17/07 21:45:59 (1 year ago)
- Files:
-
- trunk/demo/db/migrate/006_create_stats.rb (modified) (1 diff)
- trunk/demo/test/smoke/drb_smoke_test.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demo/db/migrate/006_create_stats.rb
r272 r274 10 10 11 11 def self.down 12 remove_index :stats, 'kind'12 # remove_index :stats, 'kind' 13 13 drop_table :stats 14 14 end trunk/demo/test/smoke/drb_smoke_test.rb
r273 r274 10 10 module DrbSmokeTest 11 11 12 RECORDS_PER_PROCESS = 1000 12 RECORDS_PER_PROCESS = 10000 13 13 NUM_PROCESSES = 10 # should be an even number 14 NUM_RECORDS_PER_LOGENTRY = 10 15 NUM_DOCS = 10014 NUM_RECORDS_PER_LOGENTRY = 100 15 NUM_DOCS = 50 16 16 NUM_TERMS = 1000 17 17 … … 97 97 Content.create! :title => "record #{@id} / #{i}", :description => DrbSmokeTest::random_document 98 98 end 99 sleep 0.1 99 100 if i % NUM_RECORDS_PER_LOGENTRY == 0 100 101 # write stats … … 103 104 :processing_time => @time * TIME_FACTOR, # average processing time per record in this batch 104 105 :open_connections => Monitor::count_connections 106 @time = 0 105 107 end 106 108 end
